#AFA631#AFA631

#AFA631 is a light, vivid yellow. Relative luminance 0.366; OKLCH L 71.2% C 0.134 H 104.9°. Best body text is #000000 at 8.32:1 contrast (WCAG AA passes).

Color values

HEX#AFA631
RGBrgb(175, 166, 49)
HSLhsl(56, 56%, 44%)
HSVhsv(56, 72%, 69%)
CMYKcmyk(0%, 5.1%, 72%, 31.4%)
CIE-LABlab(66.98, -10.32, 58.30)
CIE-LCHlch(66.98, 59.20, 100.04°)
OKLaboklab(71.18% -0.0343 0.1292)
OKLCHoklch(71.18% 0.134 104.9)
XYZxyz(31.8711, 36.6094, 8.2926)
Luminance0.3661 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFA631 #313AAF
analogous
#AF6731 #AFA631 #79AF31
triadic
#AFA631 #31AFA6 #A631AF
tetradic
#AFA631 #31AF67 #313AAF #AF3179
square
#AFA631 #31AF67 #313AAF #AF3179
split-complementary
#AFA631 #3179AF #6731AF
monochromatic
#4F4B16 #7F7924 #AFA631 #CEC54F #DBD57F

Accessibility & contrast

On white

2.52
#AFA631 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.32
#AFA631 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFA631
8.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFA631#FFFFFF#000000##000000
##AFA6311.002.528.328.32
#FFFFFF2.521.0021.0021.00
#0000008.3221.001.001.00
##0000008.3221.001.001.00

Color blindness preview

Protanopia (red-blind)
#B5A01D
Deuteranopia (green-blind)
#B8A539
Tritanopia (blue-blind)
#BC9B8F
Achromatopsia (no color)
#A3A3A3

Design tokens & code

CSS
--color: #afa631;
/* rgb */ color: rgb(175, 166, 49);
/* oklch */ color: oklch(71.2% 0.134 104.9);
Tailwind
colors: {
  custom: {
    50: '#cac071',
    500: '#afa631',
    950: '#000000',
  },
}
SCSS
$custom: #afa631;
$custom-light: #cac071;
$custom-dark: #000000;
JSON
{
  "hex": "#afa631",
  "rgb": {
    "r": 175,
    "g": 166,
    "b": 49
  },
  "hsl": {
    "h": 55.714,
    "s": 56.25,
    "l": 43.922
  },
  "oklch": {
    "l": 0.71183,
    "c": 0.13367,
    "h": 104.9
  },
  "luminance": 0.36608
}

Semantic roles & 50–950 ramp

primary
#AFA631
secondary
#787DC4
accent
#53E048
background
#FCFBF7
surface
#F9F7ED
border
#D2D0C8
text
#141208
muted
#82817B

Preview Lab

Preview with #AFA631

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

Preview Lab → · Contrast checker → · Palette generator →

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