#AFA93E#AFA93E

#AFA93E is a light, vivid yellow. Relative luminance 0.378; OKLCH L 71.9% C 0.127 H 106.1°. Best body text is #000000 at 8.57:1 contrast (WCAG AA passes).

Color values

HEX#AFA93E
RGBrgb(175, 169, 62)
HSLhsl(57, 48%, 46%)
HSVhsv(57, 65%, 69%)
CMYKcmyk(0%, 3.4%, 64.6%, 31.4%)
CIE-LABlab(67.90, -11.16, 54.02)
CIE-LCHlch(67.90, 55.16, 101.67°)
OKLaboklab(71.95% -0.0353 0.1224)
OKLCHoklch(71.95% 0.127 106.1)
XYZxyz(32.7378, 37.8388, 10.1356)
Luminance0.3784 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFA93E #3E44AF
analogous
#AF713E #AFA93E #7DAF3E
triadic
#AFA93E #3EAFA9 #A93EAF
tetradic
#AFA93E #3EAF71 #3E44AF #AF3E7D
square
#AFA93E #3EAF71 #3E44AF #AF3E7D
split-complementary
#AFA93E #3E7DAF #713EAF
monochromatic
#55521E #827D2E #AFA93E #C8C263 #D8D490

Accessibility & contrast

On white

2.45
#AFA93E on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.57
#AFA93E on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFA93E
8.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFA93E#FFFFFF#000000##000000
##AFA93E1.002.458.578.57
#FFFFFF2.451.0021.0021.00
#0000008.5721.001.001.00
##0000008.5721.001.001.00

Color blindness preview

Protanopia (red-blind)
#B7A330
Deuteranopia (green-blind)
#B9A844
Tritanopia (blue-blind)
#BB9E93
Achromatopsia (no color)
#A5A5A5

Design tokens & code

CSS
--color: #afa93e;
/* rgb */ color: rgb(175, 169, 62);
/* oklch */ color: oklch(71.9% 0.127 106.1);
Tailwind
colors: {
  custom: {
    50: '#cac279',
    500: '#afa93e',
    950: '#000000',
  },
}
SCSS
$custom: #afa93e;
$custom-light: #cac279;
$custom-dark: #000000;
JSON
{
  "hex": "#afa93e",
  "rgb": {
    "r": 175,
    "g": 169,
    "b": 62
  },
  "hsl": {
    "h": 56.814,
    "s": 47.679,
    "l": 46.471
  },
  "oklch": {
    "l": 0.71945,
    "c": 0.12735,
    "h": 106.1
  },
  "luminance": 0.37838
}

Semantic roles & 50–950 ramp

primary
#AFA93E
secondary
#8689C3
accent
#58D751
background
#FCFBF7
surface
#F9F7EE
border
#D2D0C9
text
#141209
muted
#82817B

Preview Lab

Preview with #AFA93E

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

Preview Lab → · Contrast checker → · Palette generator →

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