#AFB333#AFB333

#AFB333 is a light, vivid yellow. Relative luminance 0.416; OKLCH L 74.1% C 0.145 H 111.3°. Best body text is #000000 at 9.32:1 contrast (WCAG AA passes).

Color values

HEX#AFB333
RGBrgb(175, 179, 51)
HSLhsl(62, 56%, 45%)
HSVhsv(62, 72%, 70%)
CMYKcmyk(2.2%, 0%, 71.5%, 29.8%)
CIE-LABlab(70.59, -16.92, 61.06)
CIE-LCHlch(70.59, 63.36, 105.49°)
OKLaboklab(74.07% -0.0527 0.1354)
OKLCHoklch(74.07% 0.145 111.3)
XYZxyz(34.3980, 41.5941, 9.3478)
Luminance0.4159 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFB333 #3733B3
analogous
#B37733 #AFB333 #6FB333
triadic
#AFB333 #33AFB3 #B333AF
tetradic
#AFB333 #33B377 #3733B3 #B3336F
square
#AFB333 #33B377 #3733B3 #B3336F
split-complementary
#AFB333 #336FB3 #7733B3
monochromatic
#525418 #808325 #AFB333 #CBCE55 #D9DC84

Accessibility & contrast

On white

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

On black

9.32
#AFB333 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFB333
9.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFB333#FFFFFF#000000##000000
##AFB3331.002.259.329.32
#FFFFFF2.251.0021.0021.00
#0000009.3221.001.001.00
##0000009.3221.001.001.00

Color blindness preview

Protanopia (red-blind)
#C1AB1C
Deuteranopia (green-blind)
#C2AE3D
Tritanopia (blue-blind)
#BBA89A
Achromatopsia (no color)
#ADADAD

Design tokens & code

CSS
--color: #afb333;
/* rgb */ color: rgb(175, 179, 51);
/* oklch */ color: oklch(74.1% 0.145 111.3);
Tailwind
colors: {
  custom: {
    50: '#cac974',
    500: '#afb333',
    950: '#000000',
  },
}
SCSS
$custom: #afb333;
$custom-light: #cac974;
$custom-dark: #000000;
JSON
{
  "hex": "#afb333",
  "rgb": {
    "r": 175,
    "g": 179,
    "b": 51
  },
  "hsl": {
    "h": 61.875,
    "s": 55.652,
    "l": 45.098
  },
  "oklch": {
    "l": 0.74066,
    "c": 0.14526,
    "h": 111.3
  },
  "luminance": 0.41593
}

Semantic roles & 50–950 ramp

primary
#AFB333
secondary
#7F7CC6
accent
#49DF4E
background
#FCFCF7
surface
#F9F8ED
border
#D2D1C8
text
#141309
muted
#82827B

Preview Lab

Preview with #AFB333

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

Preview Lab → · Contrast checker → · Palette generator →

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