#AFB321#AFB321

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

Color values

HEX#AFB321
RGBrgb(175, 179, 33)
HSLhsl(62, 69%, 42%)
HSVhsv(62, 82%, 70%)
CMYKcmyk(2.2%, 0%, 81.6%, 29.8%)
CIE-LABlab(70.50, -17.65, 66.62)
CIE-LCHlch(70.50, 68.92, 104.84°)
OKLaboklab(73.97% -0.0562 0.144)
OKLCHoklch(73.97% 0.155 111.3)
XYZxyz(34.0751, 41.4649, 7.6471)
Luminance0.4146 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFB321 #2521B3
analogous
#B36E21 #AFB321 #66B321
triadic
#AFB321 #21AFB3 #B321AF
tetradic
#AFB321 #21B36E #2521B3 #B32166
square
#AFB321 #21B36E #2521B3 #B32166
split-complementary
#AFB321 #2166B3 #6E21B3
monochromatic
#4A4C0E #7C7F17 #AFB321 #D6DA37 #E0E46B

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##AFB321#FFFFFF#000000##000000
##AFB3211.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: #afb321;
/* rgb */ color: rgb(175, 179, 33);
/* oklch */ color: oklch(74.0% 0.155 111.3);
Tailwind
colors: {
  custom: {
    50: '#cbc96b',
    500: '#afb321',
    950: '#000000',
  },
}
SCSS
$custom: #afb321;
$custom-light: #cbc96b;
$custom-dark: #000000;
JSON
{
  "hex": "#afb321",
  "rgb": {
    "r": 175,
    "g": 179,
    "b": 33
  },
  "hsl": {
    "h": 61.644,
    "s": 68.868,
    "l": 41.569
  },
  "oklch": {
    "l": 0.73965,
    "c": 0.15456,
    "h": 111.3
  },
  "luminance": 0.41464
}

Semantic roles & 50–950 ramp

primary
#AFB321
secondary
#6966CA
accent
#3CEC41
background
#FDFCF6
surface
#FAF8EC
border
#D3D1C7
text
#141308
muted
#83827A

Preview Lab

Preview with #AFB321

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

Preview Lab → · Contrast checker → · Palette generator →

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