#AFA831#AFA831

#AFA831 is a light, vivid yellow. Relative luminance 0.373; OKLCH L 71.6% C 0.136 H 106.0°. Best body text is #000000 at 8.47:1 contrast (WCAG AA passes).

Color values

HEX#AFA831
RGBrgb(175, 168, 49)
HSLhsl(57, 56%, 44%)
HSVhsv(57, 72%, 69%)
CMYKcmyk(0%, 4%, 72%, 31.4%)
CIE-LABlab(67.53, -11.36, 58.83)
CIE-LCHlch(67.53, 59.92, 100.93°)
OKLaboklab(71.62% -0.0373 0.1303)
OKLCHoklch(71.62% 0.136 106)
XYZxyz(32.2375, 37.3422, 8.4148)
Luminance0.3734 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFA831 #3138AF
analogous
#AF6931 #AFA831 #77AF31
triadic
#AFA831 #31AFA8 #A831AF
tetradic
#AFA831 #31AF69 #3138AF #AF3177
square
#AFA831 #31AF69 #3138AF #AF3177
split-complementary
#AFA831 #3177AF #6931AF
monochromatic
#4F4C16 #7F7A24 #AFA831 #CEC74F #DBD67F

Accessibility & contrast

On white

2.48
#AFA831 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.47
#AFA831 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFA831
8.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFA831#FFFFFF#000000##000000
##AFA8311.002.488.478.47
#FFFFFF2.481.0021.0021.00
#0000008.4721.001.001.00
##0000008.4721.001.001.00

Color blindness preview

Protanopia (red-blind)
#B7A21C
Deuteranopia (green-blind)
#B9A739
Tritanopia (blue-blind)
#BC9D91
Achromatopsia (no color)
#A4A4A4

Design tokens & code

CSS
--color: #afa831;
/* rgb */ color: rgb(175, 168, 49);
/* oklch */ color: oklch(71.6% 0.136 106.0);
Tailwind
colors: {
  custom: {
    50: '#cac171',
    500: '#afa831',
    950: '#000000',
  },
}
SCSS
$custom: #afa831;
$custom-light: #cac171;
$custom-dark: #000000;
JSON
{
  "hex": "#afa831",
  "rgb": {
    "r": 175,
    "g": 168,
    "b": 49
  },
  "hsl": {
    "h": 56.667,
    "s": 56.25,
    "l": 43.922
  },
  "oklch": {
    "l": 0.71621,
    "c": 0.13554,
    "h": 106
  },
  "luminance": 0.37341
}

Semantic roles & 50–950 ramp

primary
#AFA831
secondary
#787CC4
accent
#51E048
background
#FCFBF7
surface
#F9F7ED
border
#D2D0C8
text
#141208
muted
#82817B

Preview Lab

Preview with #AFA831

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

Preview Lab → · Contrast checker → · Palette generator →

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