#AFAB2D#AFAB2D

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

Color values

HEX#AFAB2D
RGBrgb(175, 171, 45)
HSLhsl(58, 59%, 43%)
HSVhsv(58, 74%, 69%)
CMYKcmyk(0%, 2.3%, 74.3%, 31.4%)
CIE-LABlab(68.34, -13.11, 61.03)
CIE-LCHlch(68.34, 62.42, 102.12°)
OKLaboklab(72.25% -0.0426 0.1342)
OKLCHoklch(72.25% 0.141 107.6)
XYZxyz(32.7170, 38.4304, 8.1765)
Luminance0.3843 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFAB2D #2D31AF
analogous
#AF6A2D #AFAB2D #72AF2D
triadic
#AFAB2D #2DAFAB #AB2DAF
tetradic
#AFAB2D #2DAF6A #2D31AF #AF2D72
square
#AFAB2D #2DAF6A #2D31AF #AF2D72
split-complementary
#AFAB2D #2D72AF #6A2DAF
monochromatic
#4E4C14 #7E7B20 #AFAB2D #D0CC49 #DDDA7A

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##AFAB2D#FFFFFF#000000##000000
##AFAB2D1.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)
#BAA413
Deuteranopia (green-blind)
#BCA937
Tritanopia (blue-blind)
#BCA093
Achromatopsia (no color)
#A7A7A7

Design tokens & code

CSS
--color: #afab2d;
/* rgb */ color: rgb(175, 171, 45);
/* oklch */ color: oklch(72.3% 0.141 107.6);
Tailwind
colors: {
  custom: {
    50: '#cac370',
    500: '#afab2d',
    950: '#000000',
  },
}
SCSS
$custom: #afab2d;
$custom-light: #cac370;
$custom-dark: #000000;
JSON
{
  "hex": "#afab2d",
  "rgb": {
    "r": 175,
    "g": 171,
    "b": 45
  },
  "hsl": {
    "h": 58.154,
    "s": 59.091,
    "l": 43.137
  },
  "oklch": {
    "l": 0.72254,
    "c": 0.14082,
    "h": 107.6
  },
  "luminance": 0.38429
}

Semantic roles & 50–950 ramp

primary
#AFAB2D
secondary
#7375C5
accent
#4AE246
background
#FCFBF7
surface
#F9F7ED
border
#D2D0C8
text
#141208
muted
#82817B

Preview Lab

Preview with #AFAB2D

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

Preview Lab → · Contrast checker → · Palette generator →

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