#AFAC2E#AFAC2E

#AFAC2E is a light, vivid yellow. Relative luminance 0.388; OKLCH L 72.5% C 0.141 H 108.1°. Best body text is #000000 at 8.76:1 contrast (WCAG AA passes).

Color values

HEX#AFAC2E
RGBrgb(175, 172, 46)
HSLhsl(59, 58%, 43%)
HSVhsv(59, 74%, 69%)
CMYKcmyk(0%, 1.7%, 73.7%, 31.4%)
CIE-LABlab(68.62, -13.58, 60.95)
CIE-LCHlch(68.62, 62.44, 102.56°)
OKLaboklab(72.48% -0.0438 0.1342)
OKLCHoklch(72.48% 0.141 108.1)
XYZxyz(32.9261, 38.8173, 8.3423)
Luminance0.3882 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFAC2E #2E31AF
analogous
#AF6B2E #AFAC2E #71AF2E
triadic
#AFAC2E #2EAFAC #AC2EAF
tetradic
#AFAC2E #2EAF6B #2E31AF #AF2E71
square
#AFAC2E #2EAF6B #2E31AF #AF2E71
split-complementary
#AFAC2E #2E71AF #6B2EAF
monochromatic
#4E4D15 #7F7C21 #AFAC2E #D0CC4B #DCDA7B

Accessibility & contrast

On white

2.40
#AFAC2E on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.76
#AFAC2E on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFAC2E
8.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFAC2E#FFFFFF#000000##000000
##AFAC2E1.002.408.768.76
#FFFFFF2.401.0021.0021.00
#0000008.7621.001.001.00
##0000008.7621.001.001.00

Color blindness preview

Protanopia (red-blind)
#BAA514
Deuteranopia (green-blind)
#BDA938
Tritanopia (blue-blind)
#BCA194
Achromatopsia (no color)
#A7A7A7

Design tokens & code

CSS
--color: #afac2e;
/* rgb */ color: rgb(175, 172, 46);
/* oklch */ color: oklch(72.5% 0.141 108.1);
Tailwind
colors: {
  custom: {
    50: '#cac470',
    500: '#afac2e',
    950: '#000000',
  },
}
SCSS
$custom: #afac2e;
$custom-light: #cac470;
$custom-dark: #000000;
JSON
{
  "hex": "#afac2e",
  "rgb": {
    "r": 175,
    "g": 172,
    "b": 46
  },
  "hsl": {
    "h": 58.605,
    "s": 58.371,
    "l": 43.333
  },
  "oklch": {
    "l": 0.72481,
    "c": 0.1412,
    "h": 108.1
  },
  "luminance": 0.38816
}

Semantic roles & 50–950 ramp

primary
#AFAC2E
secondary
#7476C5
accent
#4AE246
background
#FCFCF7
surface
#F9F8ED
border
#D2D1C8
text
#141208
muted
#82817B

Preview Lab

Preview with #AFAC2E

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

Preview Lab → · Contrast checker → · Palette generator →

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