#AFA731#AFA731

#AFA731 is a light, vivid yellow. Relative luminance 0.370; OKLCH L 71.4% C 0.135 H 105.4°. Best body text is #000000 at 8.39:1 contrast (WCAG AA passes).

Color values

HEX#AFA731
RGBrgb(175, 167, 49)
HSLhsl(56, 56%, 44%)
HSVhsv(56, 72%, 69%)
CMYKcmyk(0%, 4.6%, 72%, 31.4%)
CIE-LABlab(67.26, -10.84, 58.56)
CIE-LCHlch(67.26, 59.56, 100.49°)
OKLaboklab(71.4% -0.0358 0.1298)
OKLCHoklch(71.4% 0.135 105.4)
XYZxyz(32.0536, 36.9743, 8.3535)
Luminance0.3697 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFA731 #3139AF
analogous
#AF6831 #AFA731 #78AF31
triadic
#AFA731 #31AFA7 #A731AF
tetradic
#AFA731 #31AF68 #3139AF #AF3178
square
#AFA731 #31AF68 #3139AF #AF3178
split-complementary
#AFA731 #3178AF #6831AF
monochromatic
#4F4C16 #7F7924 #AFA731 #CEC64F #DBD57F

Accessibility & contrast

On white

2.50
#AFA731 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.39
#AFA731 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFA731
8.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFA731#FFFFFF#000000##000000
##AFA7311.002.508.398.39
#FFFFFF2.501.0021.0021.00
#0000008.3921.001.001.00
##0000008.3921.001.001.00

Color blindness preview

Protanopia (red-blind)
#B6A11D
Deuteranopia (green-blind)
#B9A639
Tritanopia (blue-blind)
#BC9C90
Achromatopsia (no color)
#A4A4A4

Design tokens & code

CSS
--color: #afa731;
/* rgb */ color: rgb(175, 167, 49);
/* oklch */ color: oklch(71.4% 0.135 105.4);
Tailwind
colors: {
  custom: {
    50: '#cac071',
    500: '#afa731',
    950: '#000000',
  },
}
SCSS
$custom: #afa731;
$custom-light: #cac071;
$custom-dark: #000000;
JSON
{
  "hex": "#afa731",
  "rgb": {
    "r": 175,
    "g": 167,
    "b": 49
  },
  "hsl": {
    "h": 56.19,
    "s": 56.25,
    "l": 43.922
  },
  "oklch": {
    "l": 0.71402,
    "c": 0.1346,
    "h": 105.4
  },
  "luminance": 0.36973
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #AFA731

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

Preview Lab → · Contrast checker → · Palette generator →

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