#AFA74E#AFA74E

#AFA74E is a light, moderate yellow. Relative luminance 0.373; OKLCH L 71.7% C 0.111 H 104.1°. Best body text is #000000 at 8.46:1 contrast (WCAG AA passes).

Color values

HEX#AFA74E
RGBrgb(175, 167, 78)
HSLhsl(55, 38%, 50%)
HSVhsv(55, 55%, 69%)
CMYKcmyk(0%, 4.6%, 55.4%, 31.4%)
CIE-LABlab(67.50, -8.95, 46.32)
CIE-LCHlch(67.50, 47.18, 100.94°)
OKLaboklab(71.68% -0.0272 0.1081)
OKLCHoklch(71.68% 0.111 104.1)
XYZxyz(32.8741, 37.3025, 12.6747)
Luminance0.3730 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFA74E #4E56AF
analogous
#AF774E #AFA74E #86AF4E
triadic
#AFA74E #4EAFA7 #A74EAF
tetradic
#AFA74E #4EAF77 #4E56AF #AF4E86
square
#AFA74E #4EAF77 #4E56AF #AF4E86
split-complementary
#AFA74E #4E86AF #774EAF
monochromatic
#5A5628 #857F3B #AFA74E #C3BC78 #D6D1A2

Accessibility & contrast

On white

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

On black

8.46
#AFA74E on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFA74E
8.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFA74E#FFFFFF#000000##000000
##AFA74E1.002.488.468.46
#FFFFFF2.481.0021.0021.00
#0000008.4621.001.001.00
##0000008.4621.001.001.00

Color blindness preview

Protanopia (red-blind)
#B4A245
Deuteranopia (green-blind)
#B7A652
Tritanopia (blue-blind)
#BB9D93
Achromatopsia (no color)
#A4A4A4

Design tokens & code

CSS
--color: #afa74e;
/* rgb */ color: rgb(175, 167, 78);
/* oklch */ color: oklch(71.7% 0.111 104.1);
Tailwind
colors: {
  custom: {
    50: '#c9c082',
    500: '#afa74e',
    950: '#000000',
  },
}
SCSS
$custom: #afa74e;
$custom-light: #c9c082;
$custom-dark: #000000;
JSON
{
  "hex": "#afa74e",
  "rgb": {
    "r": 175,
    "g": 167,
    "b": 78
  },
  "hsl": {
    "h": 55.052,
    "s": 38.34,
    "l": 49.608
  },
  "oklch": {
    "l": 0.71676,
    "c": 0.11147,
    "h": 104.1
  },
  "luminance": 0.37301
}

Semantic roles & 50–950 ramp

primary
#AFA74E
secondary
#969AC3
accent
#63CE5A
background
#FCFBF8
surface
#F9F7EF
border
#D2D0CA
text
#13120B
muted
#82817C

Preview Lab

Preview with #AFA74E

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

Preview Lab → · Contrast checker → · Palette generator →

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