#AFAF2E#AFAF2E

#AFAF2E is a light, vivid yellow. Relative luminance 0.400; OKLCH L 73.1% C 0.144 H 109.5°. Best body text is #000000 at 8.99:1 contrast (WCAG AA passes).

Color values

HEX#AFAF2E
RGBrgb(175, 175, 46)
HSLhsl(60, 58%, 43%)
HSVhsv(60, 74%, 69%)
CMYKcmyk(0%, 0%, 73.7%, 31.4%)
CIE-LABlab(69.45, -15.12, 61.73)
CIE-LCHlch(69.45, 63.56, 103.76°)
OKLaboklab(73.15% -0.0481 0.1359)
OKLCHoklch(73.15% 0.144 109.5)
XYZxyz(33.5035, 39.9722, 8.5348)
Luminance0.3997 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFAF2E #2E2EAF
analogous
#AF6E2E #AFAF2E #6EAF2E
triadic
#AFAF2E #2EAFAF #AF2EAF
tetradic
#AFAF2E #2EAF6E #2E2EAF #AF2E6E
square
#AFAF2E #2EAF6E #2E2EAF #AF2E6E
split-complementary
#AFAF2E #2E6EAF #6E2EAF
monochromatic
#4E4E15 #7F7F21 #AFAF2E #D0D04B #DCDC7B

Accessibility & contrast

On white

2.33
#AFAF2E on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.99
#AFAF2E on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFAF2E
8.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFAF2E#FFFFFF#000000##000000
##AFAF2E1.002.338.998.99
#FFFFFF2.331.0021.0021.00
#0000008.9921.001.001.00
##0000008.9921.001.001.00

Color blindness preview

Protanopia (red-blind)
#BDA713
Deuteranopia (green-blind)
#BFAB38
Tritanopia (blue-blind)
#BCA496
Achromatopsia (no color)
#AAAAAA

Design tokens & code

CSS
--color: #afaf2e;
/* rgb */ color: rgb(175, 175, 46);
/* oklch */ color: oklch(73.1% 0.144 109.5);
Tailwind
colors: {
  custom: {
    50: '#cac671',
    500: '#afaf2e',
    950: '#000000',
  },
}
SCSS
$custom: #afaf2e;
$custom-light: #cac671;
$custom-dark: #000000;
JSON
{
  "hex": "#afaf2e",
  "rgb": {
    "r": 175,
    "g": 175,
    "b": 46
  },
  "hsl": {
    "h": 60,
    "s": 58.371,
    "l": 43.333
  },
  "oklch": {
    "l": 0.73145,
    "c": 0.14416,
    "h": 109.5
  },
  "luminance": 0.39971
}

Semantic roles & 50–950 ramp

primary
#AFAF2E
secondary
#7474C5
accent
#46E246
background
#FCFCF7
surface
#F9F8ED
border
#D2D1C8
text
#141308
muted
#82827B

Preview Lab

Preview with #AFAF2E

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

Preview Lab → · Contrast checker → · Palette generator →

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