#AFAB25#AFAB25

#AFAB25 is a light, vivid yellow. Relative luminance 0.384; OKLCH L 72.2% C 0.145 H 107.7°. Best body text is #000000 at 8.67:1 contrast (WCAG AA passes).

Color values

HEX#AFAB25
RGBrgb(175, 171, 37)
HSLhsl(58, 65%, 42%)
HSVhsv(58, 79%, 69%)
CMYKcmyk(0%, 2.3%, 78.9%, 31.4%)
CIE-LABlab(68.30, -13.43, 63.57)
CIE-LCHlch(68.30, 64.97, 101.93°)
OKLaboklab(72.21% -0.0442 0.1381)
OKLCHoklch(72.21% 0.145 107.7)
XYZxyz(32.5774, 38.3745, 7.4409)
Luminance0.3837 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFAB25 #2529AF
analogous
#AF6625 #AFAB25 #6EAF25
triadic
#AFAB25 #25AFAB #AB25AF
tetradic
#AFAB25 #25AF66 #2529AF #AF256E
square
#AFAB25 #25AF66 #2529AF #AF256E
split-complementary
#AFAB25 #256EAF #6625AF
monochromatic
#4A4810 #7C7A1A #AFAB25 #D6D13C #E0DD6E

Accessibility & contrast

On white

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

On black

8.67
#AFAB25 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFAB25
8.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFAB25#FFFFFF#000000##000000
##AFAB251.002.428.678.67
#FFFFFF2.421.0021.0021.00
#0000008.6721.001.001.00
##0000008.6721.001.001.00

Color blindness preview

Protanopia (red-blind)
#BAA400
Deuteranopia (green-blind)
#BCA931
Tritanopia (blue-blind)
#BC9F92
Achromatopsia (no color)
#A6A6A6

Design tokens & code

CSS
--color: #afab25;
/* rgb */ color: rgb(175, 171, 37);
/* oklch */ color: oklch(72.2% 0.145 107.7);
Tailwind
colors: {
  custom: {
    50: '#cbc36c',
    500: '#afab25',
    950: '#000000',
  },
}
SCSS
$custom: #afab25;
$custom-light: #cbc36c;
$custom-dark: #000000;
JSON
{
  "hex": "#afab25",
  "rgb": {
    "r": 175,
    "g": 171,
    "b": 37
  },
  "hsl": {
    "h": 58.261,
    "s": 65.094,
    "l": 41.569
  },
  "oklch": {
    "l": 0.72209,
    "c": 0.14503,
    "h": 107.7
  },
  "luminance": 0.38373
}

Semantic roles & 50–950 ramp

primary
#AFAB25
secondary
#696CC7
accent
#45E840
background
#FDFBF6
surface
#FAF7EC
border
#D3D0C7
text
#141207
muted
#83817A

Preview Lab

Preview with #AFAB25

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

Preview Lab → · Contrast checker → · Palette generator →

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