#AFA45E#AFA45E

#AFA45E is a light, moderate yellow. Relative luminance 0.365; OKLCH L 71.2% C 0.092 H 100.5°. Best body text is #000000 at 8.29:1 contrast (WCAG AA passes).

Color values

HEX#AFA45E
RGBrgb(175, 164, 94)
HSLhsl(52, 34%, 53%)
HSVhsv(52, 46%, 69%)
CMYKcmyk(0%, 6.3%, 46.3%, 31.4%)
CIE-LABlab(66.88, -5.91, 37.60)
CIE-LCHlch(66.88, 38.06, 98.93°)
OKLaboklab(71.25% -0.0168 0.0904)
OKLCHoklch(71.25% 0.092 100.5)
XYZxyz(32.9759, 36.4741, 15.8907)
Luminance0.3647 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFA45E #5E69AF
analogous
#AF7B5E #AFA45E #91AF5E
triadic
#AFA45E #5EAFA4 #A45EAF
tetradic
#AFA45E #5EAF7B #5E69AF #AF5E91
square
#AFA45E #5EAF7B #5E69AF #AF5E91
split-complementary
#AFA45E #5E91AF #7B5EAF
monochromatic
#625B31 #8B8145 #AFA45E #C3BB87 #D8D2B0

Accessibility & contrast

On white

2.53
#AFA45E on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.29
#AFA45E on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFA45E
8.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFA45E#FFFFFF#000000##000000
##AFA45E1.002.538.298.29
#FFFFFF2.531.0021.0021.00
#0000008.2921.001.001.00
##0000008.2921.001.001.00

Color blindness preview

Protanopia (red-blind)
#B0A058
Deuteranopia (green-blind)
#B3A561
Tritanopia (blue-blind)
#BA9B93
Achromatopsia (no color)
#A3A3A3

Design tokens & code

CSS
--color: #afa45e;
/* rgb */ color: rgb(175, 164, 94);
/* oklch */ color: oklch(71.2% 0.092 100.5);
Tailwind
colors: {
  custom: {
    50: '#c8be8d',
    500: '#afa45e',
    950: '#000000',
  },
}
SCSS
$custom: #afa45e;
$custom-light: #c8be8d;
$custom-dark: #000000;
JSON
{
  "hex": "#afa45e",
  "rgb": {
    "r": 175,
    "g": 164,
    "b": 94
  },
  "hsl": {
    "h": 51.852,
    "s": 33.61,
    "l": 52.745
  },
  "oklch": {
    "l": 0.71245,
    "c": 0.09196,
    "h": 100.5
  },
  "luminance": 0.36473
}

Semantic roles & 50–950 ramp

primary
#AFA45E
secondary
#A3A8C6
accent
#6DCA5E
background
#FCFBF8
surface
#F8F6F0
border
#D1D0CB
text
#13120C
muted
#82817D

Preview Lab

Preview with #AFA45E

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

Preview Lab → · Contrast checker → · Palette generator →

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