#AFAB33#AFAB33

#AFAB33 is a light, vivid yellow. Relative luminance 0.385; OKLCH L 72.3% C 0.137 H 107.5°. Best body text is #000000 at 8.70:1 contrast (WCAG AA passes).

Color values

HEX#AFAB33
RGBrgb(175, 171, 51)
HSLhsl(58, 55%, 44%)
HSVhsv(58, 71%, 69%)
CMYKcmyk(0%, 2.3%, 70.9%, 31.4%)
CIE-LABlab(68.37, -12.82, 58.91)
CIE-LCHlch(68.37, 60.28, 102.28°)
OKLaboklab(72.3% -0.0412 0.1308)
OKLCHoklch(72.3% 0.137 107.5)
XYZxyz(32.8409, 38.4799, 8.8288)
Luminance0.3848 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFAB33 #3337AF
analogous
#AF6D33 #AFAB33 #75AF33
triadic
#AFAB33 #33AFAB #AB33AF
tetradic
#AFAB33 #33AF6D #3337AF #AF3375
square
#AFAB33 #33AF6D #3337AF #AF3375
split-complementary
#AFAB33 #3375AF #6D33AF
monochromatic
#504E17 #807D25 #AFAB33 #CDC952 #DBD882

Accessibility & contrast

On white

2.41
#AFAB33 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.70
#AFAB33 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFAB33
8.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFAB33#FFFFFF#000000##000000
##AFAB331.002.418.708.70
#FFFFFF2.411.0021.0021.00
#0000008.7021.001.001.00
##0000008.7021.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #afab33;
/* rgb */ color: rgb(175, 171, 51);
/* oklch */ color: oklch(72.3% 0.137 107.5);
Tailwind
colors: {
  custom: {
    50: '#cac373',
    500: '#afab33',
    950: '#000000',
  },
}
SCSS
$custom: #afab33;
$custom-light: #cac373;
$custom-dark: #000000;
JSON
{
  "hex": "#afab33",
  "rgb": {
    "r": 175,
    "g": 171,
    "b": 51
  },
  "hsl": {
    "h": 58.065,
    "s": 54.867,
    "l": 44.314
  },
  "oklch": {
    "l": 0.72295,
    "c": 0.13716,
    "h": 107.5
  },
  "luminance": 0.38479
}

Semantic roles & 50–950 ramp

primary
#AFAB33
secondary
#7A7CC4
accent
#4EDE4A
background
#FCFBF7
surface
#F9F7ED
border
#D2D0C8
text
#141208
muted
#82817B

Preview Lab

Preview with #AFAB33

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

Preview Lab → · Contrast checker → · Palette generator →

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