#AFA931#AFA931

#AFA931 is a light, vivid yellow. Relative luminance 0.377; OKLCH L 71.8% C 0.137 H 106.5°. Best body text is #000000 at 8.54:1 contrast (WCAG AA passes).

Color values

HEX#AFA931
RGBrgb(175, 169, 49)
HSLhsl(57, 56%, 44%)
HSVhsv(57, 72%, 69%)
CMYKcmyk(0%, 3.4%, 72%, 31.4%)
CIE-LABlab(67.81, -11.88, 59.10)
CIE-LCHlch(67.81, 60.28, 101.37°)
OKLaboklab(71.84% -0.0387 0.1309)
OKLCHoklch(71.84% 0.137 106.5)
XYZxyz(32.4228, 37.7128, 8.4765)
Luminance0.3771 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFA931 #3137AF
analogous
#AF6A31 #AFA931 #76AF31
triadic
#AFA931 #31AFA9 #A931AF
tetradic
#AFA931 #31AF6A #3137AF #AF3176
square
#AFA931 #31AF6A #3137AF #AF3176
split-complementary
#AFA931 #3176AF #6A31AF
monochromatic
#4F4D16 #7F7B24 #AFA931 #CEC84F #DBD77F

Accessibility & contrast

On white

2.46
#AFA931 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.54
#AFA931 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFA931
8.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFA931#FFFFFF#000000##000000
##AFA9311.002.468.548.54
#FFFFFF2.461.0021.0021.00
#0000008.5421.001.001.00
##0000008.5421.001.001.00

Color blindness preview

Protanopia (red-blind)
#B8A31C
Deuteranopia (green-blind)
#BAA73A
Tritanopia (blue-blind)
#BC9E92
Achromatopsia (no color)
#A5A5A5

Design tokens & code

CSS
--color: #afa931;
/* rgb */ color: rgb(175, 169, 49);
/* oklch */ color: oklch(71.8% 0.137 106.5);
Tailwind
colors: {
  custom: {
    50: '#cac271',
    500: '#afa931',
    950: '#000000',
  },
}
SCSS
$custom: #afa931;
$custom-light: #cac271;
$custom-dark: #000000;
JSON
{
  "hex": "#afa931",
  "rgb": {
    "r": 175,
    "g": 169,
    "b": 49
  },
  "hsl": {
    "h": 57.143,
    "s": 56.25,
    "l": 43.922
  },
  "oklch": {
    "l": 0.71841,
    "c": 0.1365,
    "h": 106.5
  },
  "luminance": 0.37712
}

Semantic roles & 50–950 ramp

primary
#AFA931
secondary
#787BC4
accent
#4FE048
background
#FCFBF7
surface
#F9F7ED
border
#D2D0C8
text
#141208
muted
#82817B

Preview Lab

Preview with #AFA931

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

Preview Lab → · Contrast checker → · Palette generator →

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