#AFA33B#AFA33B

#AFA33B is a light, vivid yellow. Relative luminance 0.356; OKLCH L 70.6% C 0.124 H 102.7°. Best body text is #000000 at 8.12:1 contrast (WCAG AA passes).

Color values

HEX#AFA33B
RGBrgb(175, 163, 59)
HSLhsl(54, 50%, 46%)
HSVhsv(54, 66%, 69%)
CMYKcmyk(0%, 6.9%, 66.3%, 31.4%)
CIE-LABlab(66.23, -8.19, 53.54)
CIE-LCHlch(66.23, 54.17, 98.70°)
OKLaboklab(70.61% -0.0272 0.1209)
OKLCHoklch(70.61% 0.124 102.7)
XYZxyz(31.5671, 35.6254, 9.3504)
Luminance0.3562 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFA33B #3B47AF
analogous
#AF693B #AFA33B #81AF3B
triadic
#AFA33B #3BAFA3 #A33BAF
tetradic
#AFA33B #3BAF69 #3B47AF #AF3B81
square
#AFA33B #3BAF69 #3B47AF #AF3B81
split-complementary
#AFA33B #3B81AF #693BAF
monochromatic
#534E1C #81782C #AFA33B #C9BE5E #D8D08C

Accessibility & contrast

On white

2.58
#AFA33B on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.12
#AFA33B on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFA33B
8.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFA33B#FFFFFF#000000##000000
##AFA33B1.002.588.128.12
#FFFFFF2.581.0021.0021.00
#0000008.1221.001.001.00
##0000008.1221.001.001.00

Color blindness preview

Protanopia (red-blind)
#B19E2D
Deuteranopia (green-blind)
#B5A341
Tritanopia (blue-blind)
#BC988E
Achromatopsia (no color)
#A1A1A1

Design tokens & code

CSS
--color: #afa33b;
/* rgb */ color: rgb(175, 163, 59);
/* oklch */ color: oklch(70.6% 0.124 102.7);
Tailwind
colors: {
  custom: {
    50: '#cabe76',
    500: '#afa33b',
    950: '#000000',
  },
}
SCSS
$custom: #afa33b;
$custom-light: #cabe76;
$custom-dark: #000000;
JSON
{
  "hex": "#afa33b",
  "rgb": {
    "r": 175,
    "g": 163,
    "b": 59
  },
  "hsl": {
    "h": 53.793,
    "s": 49.573,
    "l": 45.882
  },
  "oklch": {
    "l": 0.7061,
    "c": 0.1239,
    "h": 102.7
  },
  "luminance": 0.35624
}

Semantic roles & 50–950 ramp

primary
#AFA33B
secondary
#838AC3
accent
#5DD94F
background
#FCFBF7
surface
#F9F6ED
border
#D2D0C8
text
#141209
muted
#82817B

Preview Lab

Preview with #AFA33B

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

Preview Lab → · Contrast checker → · Palette generator →

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