#AFAB3A#AFAB3A

#AFAB3A is a light, vivid yellow. Relative luminance 0.385; OKLCH L 72.3% C 0.132 H 107.3°. Best body text is #000000 at 8.71:1 contrast (WCAG AA passes).

Color values

HEX#AFAB3A
RGBrgb(175, 171, 58)
HSLhsl(58, 50%, 46%)
HSVhsv(58, 67%, 69%)
CMYKcmyk(0%, 2.3%, 66.9%, 31.4%)
CIE-LABlab(68.42, -12.44, 56.22)
CIE-LCHlch(68.42, 57.58, 102.48°)
OKLaboklab(72.35% -0.0394 0.1264)
OKLCHoklch(72.35% 0.132 107.3)
XYZxyz(33.0070, 38.5463, 9.7037)
Luminance0.3855 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFAB3A #3A3EAF
analogous
#AF703A #AFAB3A #78AF3A
triadic
#AFAB3A #3AAFAB #AB3AAF
tetradic
#AFAB3A #3AAF70 #3A3EAF #AF3A78
square
#AFAB3A #3AAF70 #3A3EAF #AF3A78
split-complementary
#AFAB3A #3A78AF #703AAF
monochromatic
#53511C #817E2B #AFAB3A #C9C65D #D9D68B

Accessibility & contrast

On white

2.41
#AFAB3A on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.71
#AFAB3A on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFAB3A
8.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFAB3A#FFFFFF#000000##000000
##AFAB3A1.002.418.718.71
#FFFFFF2.411.0021.0021.00
#0000008.7121.001.001.00
##0000008.7121.001.001.00

Color blindness preview

Protanopia (red-blind)
#B9A42A
Deuteranopia (green-blind)
#BBA941
Tritanopia (blue-blind)
#BBA094
Achromatopsia (no color)
#A7A7A7

Design tokens & code

CSS
--color: #afab3a;
/* rgb */ color: rgb(175, 171, 58);
/* oklch */ color: oklch(72.3% 0.132 107.3);
Tailwind
colors: {
  custom: {
    50: '#cac376',
    500: '#afab3a',
    950: '#000000',
  },
}
SCSS
$custom: #afab3a;
$custom-light: #cac376;
$custom-dark: #000000;
JSON
{
  "hex": "#afab3a",
  "rgb": {
    "r": 175,
    "g": 171,
    "b": 58
  },
  "hsl": {
    "h": 57.949,
    "s": 50.215,
    "l": 45.686
  },
  "oklch": {
    "l": 0.72349,
    "c": 0.13235,
    "h": 107.3
  },
  "luminance": 0.38545
}

Semantic roles & 50–950 ramp

primary
#AFAB3A
secondary
#8284C3
accent
#53DA4E
background
#FCFBF7
surface
#F9F7ED
border
#D2D0C8
text
#141209
muted
#82817B

Preview Lab

Preview with #AFAB3A

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

Preview Lab → · Contrast checker → · Palette generator →

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