#AFB431#AFB431

#AFB431 is a light, vivid yellow. Relative luminance 0.420; OKLCH L 74.3% C 0.148 H 111.7°. Best body text is #000000 at 9.40:1 contrast (WCAG AA passes).

Color values

HEX#AFB431
RGBrgb(175, 180, 49)
HSLhsl(62, 57%, 45%)
HSVhsv(62, 73%, 71%)
CMYKcmyk(2.8%, 0%, 72.8%, 29.4%)
CIE-LABlab(70.86, -17.52, 62.03)
CIE-LCHlch(70.86, 64.46, 105.77°)
OKLaboklab(74.28% -0.0545 0.1371)
OKLCHoklch(74.28% 0.148 111.7)
XYZxyz(34.5560, 41.9791, 9.1876)
Luminance0.4198 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFB431 #3631B4
analogous
#B47731 #AFB431 #6EB431
triadic
#AFB431 #31AFB4 #B431AF
tetradic
#AFB431 #31B477 #3631B4 #B4316E
square
#AFB431 #31B477 #3631B4 #B4316E
split-complementary
#AFB431 #316EB4 #7731B4
monochromatic
#515417 #808424 #AFB431 #CBD052 #DADD82

Accessibility & contrast

On white

2.24
#AFB431 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.40
#AFB431 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFB431
9.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFB431#FFFFFF#000000##000000
##AFB4311.002.249.409.40
#FFFFFF2.241.0021.0021.00
#0000009.4021.001.001.00
##0000009.4021.001.001.00

Color blindness preview

Protanopia (red-blind)
#C2AC17
Deuteranopia (green-blind)
#C3AF3B
Tritanopia (blue-blind)
#BBA99B
Achromatopsia (no color)
#ADADAD

Design tokens & code

CSS
--color: #afb431;
/* rgb */ color: rgb(175, 180, 49);
/* oklch */ color: oklch(74.3% 0.148 111.7);
Tailwind
colors: {
  custom: {
    50: '#caca73',
    500: '#afb431',
    950: '#000000',
  },
}
SCSS
$custom: #afb431;
$custom-light: #caca73;
$custom-dark: #000000;
JSON
{
  "hex": "#afb431",
  "rgb": {
    "r": 175,
    "g": 180,
    "b": 49
  },
  "hsl": {
    "h": 62.29,
    "s": 57.205,
    "l": 44.902
  },
  "oklch": {
    "l": 0.74275,
    "c": 0.14752,
    "h": 111.7
  },
  "luminance": 0.41978
}

Semantic roles & 50–950 ramp

primary
#AFB431
secondary
#7D7BC6
accent
#47E04D
background
#FCFCF7
surface
#F9F8ED
border
#D2D1C8
text
#141309
muted
#82827B

Preview Lab

Preview with #AFB431

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

Preview Lab → · Contrast checker → · Palette generator →

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