#AFAA33#AFAA33

#AFAA33 is a light, vivid yellow. Relative luminance 0.381; OKLCH L 72.1% C 0.136 H 107.0°. Best body text is #000000 at 8.62:1 contrast (WCAG AA passes).

Color values

HEX#AFAA33
RGBrgb(175, 170, 51)
HSLhsl(58, 55%, 44%)
HSVhsv(58, 71%, 69%)
CMYKcmyk(0%, 2.9%, 70.9%, 31.4%)
CIE-LABlab(68.10, -12.30, 58.63)
CIE-LCHlch(68.10, 59.91, 101.85°)
OKLaboklab(72.08% -0.0397 0.1303)
OKLCHoklch(72.08% 0.136 107)
XYZxyz(32.6527, 38.1035, 8.7660)
Luminance0.3810 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFAA33 #3338AF
analogous
#AF6C33 #AFAA33 #76AF33
triadic
#AFAA33 #33AFAA #AA33AF
tetradic
#AFAA33 #33AF6C #3338AF #AF3376
square
#AFAA33 #33AF6C #3338AF #AF3376
split-complementary
#AFAA33 #3376AF #6C33AF
monochromatic
#504E17 #807C25 #AFAA33 #CDC852 #DBD782

Accessibility & contrast

On white

2.44
#AFAA33 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.62
#AFAA33 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFAA33
8.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFAA33#FFFFFF#000000##000000
##AFAA331.002.448.628.62
#FFFFFF2.441.0021.0021.00
#0000008.6221.001.001.00
##0000008.6221.001.001.00

Color blindness preview

Protanopia (red-blind)
#B8A31F
Deuteranopia (green-blind)
#BBA83B
Tritanopia (blue-blind)
#BC9F93
Achromatopsia (no color)
#A6A6A6

Design tokens & code

CSS
--color: #afaa33;
/* rgb */ color: rgb(175, 170, 51);
/* oklch */ color: oklch(72.1% 0.136 107.0);
Tailwind
colors: {
  custom: {
    50: '#cac373',
    500: '#afaa33',
    950: '#000000',
  },
}
SCSS
$custom: #afaa33;
$custom-light: #cac373;
$custom-dark: #000000;
JSON
{
  "hex": "#afaa33",
  "rgb": {
    "r": 175,
    "g": 170,
    "b": 51
  },
  "hsl": {
    "h": 57.581,
    "s": 54.867,
    "l": 44.314
  },
  "oklch": {
    "l": 0.72075,
    "c": 0.13617,
    "h": 107
  },
  "luminance": 0.38102
}

Semantic roles & 50–950 ramp

primary
#AFAA33
secondary
#7A7DC4
accent
#50DE4A
background
#FCFBF7
surface
#F9F7ED
border
#D2D0C8
text
#141208
muted
#82817B

Preview Lab

Preview with #AFAA33

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

Preview Lab → · Contrast checker → · Palette generator →

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