#AFB931#AFB931

#AFB931 is a light, vivid yellow. Relative luminance 0.440; OKLCH L 75.4% C 0.153 H 113.7°. Best body text is #000000 at 9.81:1 contrast (WCAG AA passes).

Color values

HEX#AFB931
RGBrgb(175, 185, 49)
HSLhsl(64, 58%, 46%)
HSVhsv(64, 74%, 73%)
CMYKcmyk(5.4%, 0%, 73.5%, 27.5%)
CIE-LABlab(72.25, -20.03, 63.36)
CIE-LCHlch(72.25, 66.45, 107.54°)
OKLaboklab(75.39% -0.0615 0.1399)
OKLCHoklch(75.39% 0.153 113.7)
XYZxyz(35.5836, 44.0344, 9.5301)
Luminance0.4403 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFB931 #3B31B9
analogous
#B97F31 #AFB931 #6BB931
triadic
#AFB931 #31AFB9 #B931AF
tetradic
#AFB931 #31B97F #3B31B9 #B9316B
square
#AFB931 #31B97F #3B31B9 #B9316B
split-complementary
#AFB931 #316BB9 #7F31B9
monochromatic
#535817 #818924 #AFB931 #C9D255 #D8DF86

Accessibility & contrast

On white

2.14
#AFB931 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.81
#AFB931 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFB931
9.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFB931#FFFFFF#000000##000000
##AFB9311.002.149.819.81
#FFFFFF2.141.0021.0021.00
#0000009.8121.001.001.00
##0000009.8121.001.001.00

Color blindness preview

Protanopia (red-blind)
#C7B015
Deuteranopia (green-blind)
#C7B23C
Tritanopia (blue-blind)
#BBAE9F
Achromatopsia (no color)
#B1B1B1

Design tokens & code

CSS
--color: #afb931;
/* rgb */ color: rgb(175, 185, 49);
/* oklch */ color: oklch(75.4% 0.153 113.7);
Tailwind
colors: {
  custom: {
    50: '#cacd73',
    500: '#afb931',
    950: '#000000',
  },
}
SCSS
$custom: #afb931;
$custom-light: #cacd73;
$custom-dark: #000000;
JSON
{
  "hex": "#afb931",
  "rgb": {
    "r": 175,
    "g": 185,
    "b": 49
  },
  "hsl": {
    "h": 64.412,
    "s": 58.12,
    "l": 45.882
  },
  "oklch": {
    "l": 0.75392,
    "c": 0.15281,
    "h": 113.7
  },
  "luminance": 0.44034
}

Semantic roles & 50–950 ramp

primary
#AFB931
secondary
#837DC8
accent
#46E152
background
#FCFCF7
surface
#F9F9ED
border
#D2D2C8
text
#141309
muted
#82827B

Preview Lab

Preview with #AFB931

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

Preview Lab → · Contrast checker → · Palette generator →

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