#AFBA46#AFBA46

#AFBA46 is a light, vivid yellow. Relative luminance 0.447; OKLCH L 75.8% C 0.139 H 114.3°. Best body text is #000000 at 9.93:1 contrast (WCAG AA passes).

Color values

HEX#AFBA46
RGBrgb(175, 186, 70)
HSLhsl(66, 46%, 50%)
HSVhsv(66, 62%, 73%)
CMYKcmyk(5.9%, 0%, 62.4%, 27.1%)
CIE-LABlab(72.68, -19.32, 55.68)
CIE-LCHlch(72.68, 58.94, 109.13°)
OKLaboklab(75.78% -0.0575 0.1271)
OKLCHoklch(75.78% 0.139 114.3)
XYZxyz(36.3445, 44.6746, 12.5016)
Luminance0.4467 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFBA46 #5146BA
analogous
#BA8B46 #AFBA46 #75BA46
triadic
#AFBA46 #46AFBA #BA46AF
tetradic
#AFBA46 #46BA8B #5146BA #BA4675
square
#AFBA46 #46BA8B #5146BA #BA4675
split-complementary
#AFBA46 #4675BA #8B46BA
monochromatic
#5C6124 #858E35 #AFBA46 #C2CB73 #D6DB9F

Accessibility & contrast

On white

2.11
#AFBA46 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.93
#AFBA46 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFBA46
9.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFBA46#FFFFFF#000000##000000
##AFBA461.002.119.939.93
#FFFFFF2.111.0021.0021.00
#0000009.9321.001.001.00
##0000009.9321.001.001.00

Color blindness preview

Protanopia (red-blind)
#C7B138
Deuteranopia (green-blind)
#C6B34E
Tritanopia (blue-blind)
#BAB0A2
Achromatopsia (no color)
#B2B2B2

Design tokens & code

CSS
--color: #afba46;
/* rgb */ color: rgb(175, 186, 70);
/* oklch */ color: oklch(75.8% 0.139 114.3);
Tailwind
colors: {
  custom: {
    50: '#cace7f',
    500: '#afba46',
    950: '#000000',
  },
}
SCSS
$custom: #afba46;
$custom-light: #cace7f;
$custom-dark: #000000;
JSON
{
  "hex": "#afba46",
  "rgb": {
    "r": 175,
    "g": 186,
    "b": 70
  },
  "hsl": {
    "h": 65.69,
    "s": 45.669,
    "l": 50.196
  },
  "oklch": {
    "l": 0.7578,
    "c": 0.13944,
    "h": 114.3
  },
  "luminance": 0.44674
}

Semantic roles & 50–950 ramp

primary
#AFBA46
secondary
#9994C8
accent
#52D55F
background
#FCFCF8
surface
#F9F9EF
border
#D2D2CA
text
#14130A
muted
#82827C

Preview Lab

Preview with #AFBA46

Body copy rendered with the generated semantic roles for this colour.

Preview Lab → · Contrast checker → · Palette generator →

#AFBA46 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva