#AFAB2E#AFAB2E

#AFAB2E is a light, vivid yellow. Relative luminance 0.384; OKLCH L 72.3% C 0.140 H 107.6°. Best body text is #000000 at 8.69:1 contrast (WCAG AA passes).

Color values

HEX#AFAB2E
RGBrgb(175, 171, 46)
HSLhsl(58, 58%, 43%)
HSVhsv(58, 74%, 69%)
CMYKcmyk(0%, 2.3%, 73.7%, 31.4%)
CIE-LABlab(68.34, -13.06, 60.69)
CIE-LCHlch(68.34, 62.08, 102.15°)
OKLaboklab(72.26% -0.0423 0.1337)
OKLCHoklch(72.26% 0.14 107.6)
XYZxyz(32.7365, 38.4381, 8.2791)
Luminance0.3844 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFAB2E #2E32AF
analogous
#AF6B2E #AFAB2E #72AF2E
triadic
#AFAB2E #2EAFAB #AB2EAF
tetradic
#AFAB2E #2EAF6B #2E32AF #AF2E72
square
#AFAB2E #2EAF6B #2E32AF #AF2E72
split-complementary
#AFAB2E #2E72AF #6B2EAF
monochromatic
#4E4C15 #7F7C21 #AFAB2E #D0CB4B #DCD97B

Accessibility & contrast

On white

2.42
#AFAB2E on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.69
#AFAB2E on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFAB2E
8.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFAB2E#FFFFFF#000000##000000
##AFAB2E1.002.428.698.69
#FFFFFF2.421.0021.0021.00
#0000008.6921.001.001.00
##0000008.6921.001.001.00

Color blindness preview

Protanopia (red-blind)
#BAA415
Deuteranopia (green-blind)
#BCA938
Tritanopia (blue-blind)
#BCA093
Achromatopsia (no color)
#A7A7A7

Design tokens & code

CSS
--color: #afab2e;
/* rgb */ color: rgb(175, 171, 46);
/* oklch */ color: oklch(72.3% 0.140 107.6);
Tailwind
colors: {
  custom: {
    50: '#cac370',
    500: '#afab2e',
    950: '#000000',
  },
}
SCSS
$custom: #afab2e;
$custom-light: #cac370;
$custom-dark: #000000;
JSON
{
  "hex": "#afab2e",
  "rgb": {
    "r": 175,
    "g": 171,
    "b": 46
  },
  "hsl": {
    "h": 58.14,
    "s": 58.371,
    "l": 43.333
  },
  "oklch": {
    "l": 0.72261,
    "c": 0.14024,
    "h": 107.6
  },
  "luminance": 0.38437
}

Semantic roles & 50–950 ramp

primary
#AFAB2E
secondary
#7477C5
accent
#4BE246
background
#FCFBF7
surface
#F9F7ED
border
#D2D0C8
text
#141208
muted
#82817B

Preview Lab

Preview with #AFAB2E

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

Preview Lab → · Contrast checker → · Palette generator →

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