#AFA73E#AFA73E

#AFA73E is a light, vivid yellow. Relative luminance 0.371; OKLCH L 71.5% C 0.125 H 105.0°. Best body text is #000000 at 8.42:1 contrast (WCAG AA passes).

Color values

HEX#AFA73E
RGBrgb(175, 167, 62)
HSLhsl(56, 48%, 46%)
HSVhsv(56, 65%, 69%)
CMYKcmyk(0%, 4.6%, 64.6%, 31.4%)
CIE-LABlab(67.35, -10.11, 53.44)
CIE-LCHlch(67.35, 54.39, 100.71°)
OKLaboklab(71.51% -0.0324 0.1211)
OKLCHoklch(71.51% 0.125 105)
XYZxyz(32.3686, 37.1004, 10.0125)
Luminance0.3710 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFA73E #3E46AF
analogous
#AF6F3E #AFA73E #7FAF3E
triadic
#AFA73E #3EAFA7 #A73EAF
tetradic
#AFA73E #3EAF6F #3E46AF #AF3E7F
square
#AFA73E #3EAF6F #3E46AF #AF3E7F
split-complementary
#AFA73E #3E7FAF #6F3EAF
monochromatic
#55511E #827C2E #AFA73E #C8C063 #D8D390

Accessibility & contrast

On white

2.49
#AFA73E on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.42
#AFA73E on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFA73E
8.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFA73E#FFFFFF#000000##000000
##AFA73E1.002.498.428.42
#FFFFFF2.491.0021.0021.00
#0000008.4221.001.001.00
##0000008.4221.001.001.00

Color blindness preview

Protanopia (red-blind)
#B5A131
Deuteranopia (green-blind)
#B8A644
Tritanopia (blue-blind)
#BC9C91
Achromatopsia (no color)
#A4A4A4

Design tokens & code

CSS
--color: #afa73e;
/* rgb */ color: rgb(175, 167, 62);
/* oklch */ color: oklch(71.5% 0.125 105.0);
Tailwind
colors: {
  custom: {
    50: '#cac078',
    500: '#afa73e',
    950: '#000000',
  },
}
SCSS
$custom: #afa73e;
$custom-light: #cac078;
$custom-dark: #000000;
JSON
{
  "hex": "#afa73e",
  "rgb": {
    "r": 175,
    "g": 167,
    "b": 62
  },
  "hsl": {
    "h": 55.752,
    "s": 47.679,
    "l": 46.471
  },
  "oklch": {
    "l": 0.71508,
    "c": 0.12538,
    "h": 105
  },
  "luminance": 0.37099
}

Semantic roles & 50–950 ramp

primary
#AFA73E
secondary
#868AC3
accent
#5AD751
background
#FCFBF7
surface
#F9F7EE
border
#D2D0C9
text
#141209
muted
#82817B

Preview Lab

Preview with #AFA73E

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

Preview Lab → · Contrast checker → · Palette generator →

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