#AFA55F#AFA55F

#AFA55F is a light, moderate yellow. Relative luminance 0.368; OKLCH L 71.5% C 0.092 H 101.2°. Best body text is #000000 at 8.37:1 contrast (WCAG AA passes).

Color values

HEX#AFA55F
RGBrgb(175, 165, 95)
HSLhsl(53, 33%, 53%)
HSVhsv(53, 46%, 69%)
CMYKcmyk(0%, 5.7%, 45.7%, 31.4%)
CIE-LABlab(67.17, -6.34, 37.44)
CIE-LCHlch(67.17, 37.97, 99.61°)
OKLaboklab(71.47% -0.0179 0.0901)
OKLCHoklch(71.47% 0.092 101.2)
XYZxyz(33.2007, 36.8515, 16.1884)
Luminance0.3685 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFA55F #5F69AF
analogous
#AF7D5F #AFA55F #91AF5F
triadic
#AFA55F #5FAFA5 #A55FAF
tetradic
#AFA55F #5FAF7D #5F69AF #AF5F91
square
#AFA55F #5FAF7D #5F69AF #AF5F91
split-complementary
#AFA55F #5F91AF #7D5FAF
monochromatic
#625C31 #8B8246 #AFA55F #C3BC88 #D8D3B1

Accessibility & contrast

On white

2.51
#AFA55F on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.37
#AFA55F on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFA55F
8.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFA55F#FFFFFF#000000##000000
##AFA55F1.002.518.378.37
#FFFFFF2.511.0021.0021.00
#0000008.3721.001.001.00
##0000008.3721.001.001.00

Color blindness preview

Protanopia (red-blind)
#B1A159
Deuteranopia (green-blind)
#B4A562
Tritanopia (blue-blind)
#BA9C94
Achromatopsia (no color)
#A3A3A3

Design tokens & code

CSS
--color: #afa55f;
/* rgb */ color: rgb(175, 165, 95);
/* oklch */ color: oklch(71.5% 0.092 101.2);
Tailwind
colors: {
  custom: {
    50: '#c8bf8e',
    500: '#afa55f',
    950: '#000000',
  },
}
SCSS
$custom: #afa55f;
$custom-light: #c8bf8e;
$custom-dark: #000000;
JSON
{
  "hex": "#afa55f",
  "rgb": {
    "r": 175,
    "g": 165,
    "b": 95
  },
  "hsl": {
    "h": 52.5,
    "s": 33.333,
    "l": 52.941
  },
  "oklch": {
    "l": 0.71475,
    "c": 0.09189,
    "h": 101.2
  },
  "luminance": 0.3685
}

Semantic roles & 50–950 ramp

primary
#AFA55F
secondary
#A4A8C6
accent
#6CC95E
background
#FCFBF8
surface
#F8F7F0
border
#D1D0CB
text
#13120C
muted
#82817D

Preview Lab

Preview with #AFA55F

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

Preview Lab → · Contrast checker → · Palette generator →

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