#AFA45F#AFA45F

#AFA45F is a light, moderate yellow. Relative luminance 0.365; OKLCH L 71.3% C 0.091 H 100.4°. Best body text is #000000 at 8.30:1 contrast (WCAG AA passes).

Color values

HEX#AFA45F
RGBrgb(175, 164, 95)
HSLhsl(52, 33%, 53%)
HSVhsv(52, 46%, 69%)
CMYKcmyk(0%, 6.3%, 45.7%, 31.4%)
CIE-LABlab(66.89, -5.81, 37.10)
CIE-LCHlch(66.89, 37.55, 98.90°)
OKLaboklab(71.26% -0.0164 0.0894)
OKLCHoklch(71.26% 0.091 100.4)
XYZxyz(33.0210, 36.4922, 16.1285)
Luminance0.3649 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFA45F #5F6AAF
analogous
#AF7C5F #AFA45F #92AF5F
triadic
#AFA45F #5FAFA4 #A45FAF
tetradic
#AFA45F #5FAF7C #5F6AAF #AF5F92
square
#AFA45F #5FAF7C #5F6AAF #AF5F92
split-complementary
#AFA45F #5F92AF #7C5FAF
monochromatic
#625C31 #8B8246 #AFA45F #C3BB88 #D8D2B1

Accessibility & contrast

On white

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

On black

8.30
#AFA45F on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFA45F
8.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFA45F#FFFFFF#000000##000000
##AFA45F1.002.538.308.30
#FFFFFF2.531.0021.0021.00
#0000008.3021.001.001.00
##0000008.3021.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #afa45f;
/* rgb */ color: rgb(175, 164, 95);
/* oklch */ color: oklch(71.3% 0.091 100.4);
Tailwind
colors: {
  custom: {
    50: '#c8be8e',
    500: '#afa45f',
    950: '#000000',
  },
}
SCSS
$custom: #afa45f;
$custom-light: #c8be8e;
$custom-dark: #000000;
JSON
{
  "hex": "#afa45f",
  "rgb": {
    "r": 175,
    "g": 164,
    "b": 95
  },
  "hsl": {
    "h": 51.75,
    "s": 33.333,
    "l": 52.941
  },
  "oklch": {
    "l": 0.7126,
    "c": 0.09087,
    "h": 100.4
  },
  "luminance": 0.36491
}

Semantic roles & 50–950 ramp

primary
#AFA45F
secondary
#A4A8C6
accent
#6DC95E
background
#FCFBF8
surface
#F8F6F0
border
#D1D0CB
text
#13120C
muted
#82817D

Preview Lab

Preview with #AFA45F

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

Preview Lab → · Contrast checker → · Palette generator →

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