#AFAB2F#AFAB2F

#AFAB2F 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#AFAB2F
RGBrgb(175, 171, 47)
HSLhsl(58, 58%, 44%)
HSVhsv(58, 73%, 69%)
CMYKcmyk(0%, 2.3%, 73.1%, 31.4%)
CIE-LABlab(68.35, -13.01, 60.34)
CIE-LCHlch(68.35, 61.73, 102.17°)
OKLaboklab(72.27% -0.0421 0.1331)
OKLCHoklch(72.27% 0.14 107.6)
XYZxyz(32.7565, 38.4461, 8.3841)
Luminance0.3845 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFAB2F #2F33AF
analogous
#AF6B2F #AFAB2F #73AF2F
triadic
#AFAB2F #2FAFAB #AB2FAF
tetradic
#AFAB2F #2FAF6B #2F33AF #AF2F73
square
#AFAB2F #2FAF6B #2F33AF #AF2F73
split-complementary
#AFAB2F #2F73AF #6B2FAF
monochromatic
#4F4D15 #7F7C22 #AFAB2F #CFCB4C #DCD97C

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##AFAB2F#FFFFFF#000000##000000
##AFAB2F1.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)
#BAA417
Deuteranopia (green-blind)
#BCA938
Tritanopia (blue-blind)
#BCA093
Achromatopsia (no color)
#A7A7A7

Design tokens & code

CSS
--color: #afab2f;
/* rgb */ color: rgb(175, 171, 47);
/* oklch */ color: oklch(72.3% 0.140 107.6);
Tailwind
colors: {
  custom: {
    50: '#cac371',
    500: '#afab2f',
    950: '#000000',
  },
}
SCSS
$custom: #afab2f;
$custom-light: #cac371;
$custom-dark: #000000;
JSON
{
  "hex": "#afab2f",
  "rgb": {
    "r": 175,
    "g": 171,
    "b": 47
  },
  "hsl": {
    "h": 58.125,
    "s": 57.658,
    "l": 43.529
  },
  "oklch": {
    "l": 0.72267,
    "c": 0.13964,
    "h": 107.6
  },
  "luminance": 0.38445
}

Semantic roles & 50–950 ramp

primary
#AFAB2F
secondary
#7578C4
accent
#4CE147
background
#FCFBF7
surface
#F9F7ED
border
#D2D0C8
text
#141208
muted
#82817B

Preview Lab

Preview with #AFAB2F

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

Preview Lab → · Contrast checker → · Palette generator →

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