#AFB322#AFB322

#AFB322 is a light, vivid yellow. Relative luminance 0.415; OKLCH L 74.0% C 0.154 H 111.3°. Best body text is #000000 at 9.29:1 contrast (WCAG AA passes).

Color values

HEX#AFB322
RGBrgb(175, 179, 34)
HSLhsl(62, 68%, 42%)
HSVhsv(62, 81%, 70%)
CMYKcmyk(2.2%, 0%, 81%, 29.8%)
CIE-LABlab(70.50, -17.62, 66.36)
CIE-LCHlch(70.50, 68.66, 104.87°)
OKLaboklab(73.97% -0.056 0.1436)
OKLCHoklch(73.97% 0.154 111.3)
XYZxyz(34.0893, 41.4706, 7.7220)
Luminance0.4147 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFB322 #2622B3
analogous
#B36F22 #AFB322 #67B322
triadic
#AFB322 #22AFB3 #B322AF
tetradic
#AFB322 #22B36F #2622B3 #B32267
square
#AFB322 #22B36F #2622B3 #B32267
split-complementary
#AFB322 #2267B3 #6F22B3
monochromatic
#4A4C0E #7D8018 #AFB322 #D5D939 #E0E36C

Accessibility & contrast

On white

2.26
#AFB322 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.29
#AFB322 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFB322
9.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFB322#FFFFFF#000000##000000
##AFB3221.002.269.299.29
#FFFFFF2.261.0021.0021.00
#0000009.2921.001.001.00
##0000009.2921.001.001.00

Color blindness preview

Protanopia (red-blind)
#C2AB00
Deuteranopia (green-blind)
#C2AE30
Tritanopia (blue-blind)
#BCA799
Achromatopsia (no color)
#ACACAC

Design tokens & code

CSS
--color: #afb322;
/* rgb */ color: rgb(175, 179, 34);
/* oklch */ color: oklch(74.0% 0.154 111.3);
Tailwind
colors: {
  custom: {
    50: '#cbc96c',
    500: '#afb322',
    950: '#000000',
  },
}
SCSS
$custom: #afb322;
$custom-light: #cbc96c;
$custom-dark: #000000;
JSON
{
  "hex": "#afb322",
  "rgb": {
    "r": 175,
    "g": 179,
    "b": 34
  },
  "hsl": {
    "h": 61.655,
    "s": 68.075,
    "l": 41.765
  },
  "oklch": {
    "l": 0.7397,
    "c": 0.15413,
    "h": 111.3
  },
  "luminance": 0.4147
}

Semantic roles & 50–950 ramp

primary
#AFB322
secondary
#6A68C9
accent
#3DEB42
background
#FDFCF6
surface
#FAF8EC
border
#D3D1C7
text
#141308
muted
#83827A

Preview Lab

Preview with #AFB322

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

Preview Lab → · Contrast checker → · Palette generator →

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