#AFA45B#AFA45B

#AFA45B is a light, moderate yellow. Relative luminance 0.364; OKLCH L 71.2% C 0.095 H 100.8°. Best body text is #000000 at 8.28:1 contrast (WCAG AA passes).

Color values

HEX#AFA45B
RGBrgb(175, 164, 91)
HSLhsl(52, 34%, 52%)
HSVhsv(52, 48%, 69%)
CMYKcmyk(0%, 6.3%, 48%, 31.4%)
CIE-LABlab(66.84, -6.20, 39.09)
CIE-LCHlch(66.84, 39.58, 99.02°)
OKLaboklab(71.2% -0.0179 0.0935)
OKLCHoklch(71.2% 0.095 100.8)
XYZxyz(32.8439, 36.4213, 15.1954)
Luminance0.3642 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFA45B #5B66AF
analogous
#AF7A5B #AFA45B #90AF5B
triadic
#AFA45B #5BAFA4 #A45BAF
tetradic
#AFA45B #5BAF7A #5B66AF #AF5B90
square
#AFA45B #5BAF7A #5B66AF #AF5B90
split-complementary
#AFA45B #5B90AF #7A5BAF
monochromatic
#615A2F #8A8043 #AFA45B #C3BB84 #D7D2AD

Accessibility & contrast

On white

2.54
#AFA45B on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.28
#AFA45B on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFA45B
8.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFA45B#FFFFFF#000000##000000
##AFA45B1.002.548.288.28
#FFFFFF2.541.0021.0021.00
#0000008.2821.001.001.00
##0000008.2821.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #afa45b;
/* rgb */ color: rgb(175, 164, 91);
/* oklch */ color: oklch(71.2% 0.095 100.8);
Tailwind
colors: {
  custom: {
    50: '#c8be8b',
    500: '#afa45b',
    950: '#000000',
  },
}
SCSS
$custom: #afa45b;
$custom-light: #c8be8b;
$custom-dark: #000000;
JSON
{
  "hex": "#afa45b",
  "rgb": {
    "r": 175,
    "g": 164,
    "b": 91
  },
  "hsl": {
    "h": 52.143,
    "s": 34.426,
    "l": 52.157
  },
  "oklch": {
    "l": 0.712,
    "c": 0.09522,
    "h": 100.8
  },
  "luminance": 0.3642
}

Semantic roles & 50–950 ramp

primary
#AFA45B
secondary
#A1A5C5
accent
#6CCB5D
background
#FCFBF8
surface
#F8F6F0
border
#D1D0CB
text
#13120C
muted
#82817D

Preview Lab

Preview with #AFA45B

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

Preview Lab → · Contrast checker → · Palette generator →

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