#AFB31D#AFB31D

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

Color values

HEX#AFB31D
RGBrgb(175, 179, 29)
HSLhsl(62, 72%, 41%)
HSVhsv(62, 84%, 70%)
CMYKcmyk(2.2%, 0%, 83.8%, 29.8%)
CIE-LABlab(70.49, -17.77, 67.61)
CIE-LCHlch(70.49, 69.90, 104.73°)
OKLaboklab(73.95% -0.0568 0.1454)
OKLCHoklch(73.95% 0.156 111.3)
XYZxyz(34.0223, 41.4438, 7.3694)
Luminance0.4144 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFB31D #211DB3
analogous
#B36C1D #AFB31D #64B31D
triadic
#AFB31D #1DAFB3 #B31DAF
tetradic
#AFB31D #1DB36C #211DB3 #B31D64
square
#AFB31D #1DB36C #211DB3 #B31D64
split-complementary
#AFB31D #1D64B3 #6C1DB3
monochromatic
#484A0C #7C7E14 #AFB31D #D9DD30 #E3E664

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##AFB31D#FFFFFF#000000##000000
##AFB31D1.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)
#C3AE2D
Tritanopia (blue-blind)
#BCA799
Achromatopsia (no color)
#ACACAC

Design tokens & code

CSS
--color: #afb31d;
/* rgb */ color: rgb(175, 179, 29);
/* oklch */ color: oklch(73.9% 0.156 111.3);
Tailwind
colors: {
  custom: {
    50: '#cbc96a',
    500: '#afb31d',
    950: '#000000',
  },
}
SCSS
$custom: #afb31d;
$custom-light: #cbc96a;
$custom-dark: #000000;
JSON
{
  "hex": "#afb31d",
  "rgb": {
    "r": 175,
    "g": 179,
    "b": 29
  },
  "hsl": {
    "h": 61.6,
    "s": 72.115,
    "l": 40.784
  },
  "oklch": {
    "l": 0.73949,
    "c": 0.15612,
    "h": 111.3
  },
  "luminance": 0.41443
}

Semantic roles & 50–950 ramp

primary
#AFB31D
secondary
#6461CB
accent
#39EF3E
background
#FDFCF6
surface
#FAF8EC
border
#D3D1C7
text
#141307
muted
#83827A

Preview Lab

Preview with #AFB31D

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

Preview Lab → · Contrast checker → · Palette generator →

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