#AFAF33#AFAF33

#AFAF33 is a light, vivid yellow. Relative luminance 0.400; OKLCH L 73.2% C 0.141 H 109.4°. Best body text is #000000 at 9.00:1 contrast (WCAG AA passes).

Color values

HEX#AFAF33
RGBrgb(175, 175, 51)
HSLhsl(60, 55%, 44%)
HSVhsv(60, 71%, 69%)
CMYKcmyk(0%, 0%, 70.9%, 31.4%)
CIE-LABlab(69.48, -14.88, 59.99)
CIE-LCHlch(69.48, 61.80, 103.93°)
OKLaboklab(73.18% -0.047 0.1331)
OKLCHoklch(73.18% 0.141 109.4)
XYZxyz(33.6079, 40.0139, 9.0844)
Luminance0.4001 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFAF33 #3333AF
analogous
#AF7133 #AFAF33 #71AF33
triadic
#AFAF33 #33AFAF #AF33AF
tetradic
#AFAF33 #33AF71 #3333AF #AF3371
square
#AFAF33 #33AF71 #3333AF #AF3371
split-complementary
#AFAF33 #3371AF #7133AF
monochromatic
#505017 #808025 #AFAF33 #CDCD52 #DBDB82

Accessibility & contrast

On white

2.33
#AFAF33 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.00
#AFAF33 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFAF33
9.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFAF33#FFFFFF#000000##000000
##AFAF331.002.339.009.00
#FFFFFF2.331.0021.0021.00
#0000009.0021.001.001.00
##0000009.0021.001.001.00

Color blindness preview

Protanopia (red-blind)
#BDA81D
Deuteranopia (green-blind)
#BFAC3C
Tritanopia (blue-blind)
#BBA497
Achromatopsia (no color)
#AAAAAA

Design tokens & code

CSS
--color: #afaf33;
/* rgb */ color: rgb(175, 175, 51);
/* oklch */ color: oklch(73.2% 0.141 109.4);
Tailwind
colors: {
  custom: {
    50: '#cac673',
    500: '#afaf33',
    950: '#000000',
  },
}
SCSS
$custom: #afaf33;
$custom-light: #cac673;
$custom-dark: #000000;
JSON
{
  "hex": "#afaf33",
  "rgb": {
    "r": 175,
    "g": 175,
    "b": 51
  },
  "hsl": {
    "h": 60,
    "s": 54.867,
    "l": 44.314
  },
  "oklch": {
    "l": 0.73178,
    "c": 0.14115,
    "h": 109.4
  },
  "luminance": 0.40013
}

Semantic roles & 50–950 ramp

primary
#AFAF33
secondary
#7A7AC4
accent
#4ADE4A
background
#FCFCF7
surface
#F9F8ED
border
#D2D1C8
text
#141309
muted
#82827B

Preview Lab

Preview with #AFAF33

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

Preview Lab → · Contrast checker → · Palette generator →

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