#AFB33B#AFB33B

#AFB33B is a light, vivid yellow. Relative luminance 0.417; OKLCH L 74.1% C 0.140 H 111.2°. Best body text is #000000 at 9.33:1 contrast (WCAG AA passes).

Color values

HEX#AFB33B
RGBrgb(175, 179, 59)
HSLhsl(62, 50%, 47%)
HSVhsv(62, 67%, 70%)
CMYKcmyk(2.2%, 0%, 67%, 29.8%)
CIE-LABlab(70.64, -16.49, 58.09)
CIE-LCHlch(70.64, 60.38, 105.85°)
OKLaboklab(74.13% -0.0507 0.1305)
OKLCHoklch(74.13% 0.14 111.2)
XYZxyz(34.5898, 41.6708, 10.3580)
Luminance0.4167 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFB33B #3F3BB3
analogous
#B37B3B #AFB33B #73B33B
triadic
#AFB33B #3BAFB3 #B33BAF
tetradic
#AFB33B #3BB37B #3F3BB3 #B33B73
square
#AFB33B #3BB37B #3F3BB3 #B33B73
split-complementary
#AFB33B #3B73B3 #7B3BB3
monochromatic
#55571D #82852C #AFB33B #C7CB60 #D7DA8E

Accessibility & contrast

On white

2.25
#AFB33B on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.33
#AFB33B on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFB33B
9.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFB33B#FFFFFF#000000##000000
##AFB33B1.002.259.339.33
#FFFFFF2.251.0021.0021.00
#0000009.3321.001.001.00
##0000009.3321.001.001.00

Color blindness preview

Protanopia (red-blind)
#C1AB29
Deuteranopia (green-blind)
#C1AE43
Tritanopia (blue-blind)
#BBA89B
Achromatopsia (no color)
#ADADAD

Design tokens & code

CSS
--color: #afb33b;
/* rgb */ color: rgb(175, 179, 59);
/* oklch */ color: oklch(74.1% 0.140 111.2);
Tailwind
colors: {
  custom: {
    50: '#cac978',
    500: '#afb33b',
    950: '#000000',
  },
}
SCSS
$custom: #afb33b;
$custom-light: #cac978;
$custom-dark: #000000;
JSON
{
  "hex": "#afb33b",
  "rgb": {
    "r": 175,
    "g": 179,
    "b": 59
  },
  "hsl": {
    "h": 62,
    "s": 50.42,
    "l": 46.667
  },
  "oklch": {
    "l": 0.74125,
    "c": 0.13995,
    "h": 111.2
  },
  "luminance": 0.4167
}

Semantic roles & 50–950 ramp

primary
#AFB33B
secondary
#8785C5
accent
#4EDA53
background
#FCFCF7
surface
#F9F8EE
border
#D2D1C9
text
#141309
muted
#82827B

Preview Lab

Preview with #AFB33B

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

Preview Lab → · Contrast checker → · Palette generator →

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