#AFA458#AFA458

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

Color values

HEX#AFA458
RGBrgb(175, 164, 88)
HSLhsl(52, 35%, 52%)
HSVhsv(52, 50%, 69%)
CMYKcmyk(0%, 6.3%, 49.7%, 31.4%)
CIE-LABlab(66.80, -6.49, 40.56)
CIE-LCHlch(66.80, 41.08, 99.09°)
OKLaboklab(71.16% -0.0191 0.0965)
OKLCHoklch(71.16% 0.098 101.2)
XYZxyz(32.7170, 36.3706, 14.5274)
Luminance0.3637 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFA458 #5863AF
analogous
#AF7958 #AFA458 #8FAF58
triadic
#AFA458 #58AFA4 #A458AF
tetradic
#AFA458 #58AF79 #5863AF #AF588F
square
#AFA458 #58AF79 #5863AF #AF588F
split-complementary
#AFA458 #588FAF #7958AF
monochromatic
#5F592E #887F41 #AFA458 #C3BB81 #D7D1AB

Accessibility & contrast

On white

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

On black

8.27
#AFA458 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFA458
8.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFA458#FFFFFF#000000##000000
##AFA4581.002.548.278.27
#FFFFFF2.541.0021.0021.00
#0000008.2721.001.001.00
##0000008.2721.001.001.00

Color blindness preview

Protanopia (red-blind)
#B0A051
Deuteranopia (green-blind)
#B4A55B
Tritanopia (blue-blind)
#BA9B92
Achromatopsia (no color)
#A2A2A2

Design tokens & code

CSS
--color: #afa458;
/* rgb */ color: rgb(175, 164, 88);
/* oklch */ color: oklch(71.2% 0.098 101.2);
Tailwind
colors: {
  custom: {
    50: '#c9be89',
    500: '#afa458',
    950: '#000000',
  },
}
SCSS
$custom: #afa458;
$custom-light: #c9be89;
$custom-dark: #000000;
JSON
{
  "hex": "#afa458",
  "rgb": {
    "r": 175,
    "g": 164,
    "b": 88
  },
  "hsl": {
    "h": 52.414,
    "s": 35.223,
    "l": 51.569
  },
  "oklch": {
    "l": 0.71157,
    "c": 0.0984,
    "h": 101.2
  },
  "luminance": 0.36369
}

Semantic roles & 50–950 ramp

primary
#AFA458
secondary
#9EA3C5
accent
#6BCB5D
background
#FCFBF8
surface
#F8F6F0
border
#D1D0CB
text
#13120C
muted
#82817D

Preview Lab

Preview with #AFA458

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

Preview Lab → · Contrast checker → · Palette generator →

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