#AFA658#AFA658

#AFA658 is a light, moderate yellow. Relative luminance 0.371; OKLCH L 71.6% C 0.100 H 102.7°. Best body text is #000000 at 8.42:1 contrast (WCAG AA passes).

Color values

HEX#AFA658
RGBrgb(175, 166, 88)
HSLhsl(54, 35%, 52%)
HSVhsv(54, 50%, 69%)
CMYKcmyk(0%, 5.1%, 49.7%, 31.4%)
CIE-LABlab(67.35, -7.55, 41.22)
CIE-LCHlch(67.35, 41.91, 100.38°)
OKLaboklab(71.59% -0.0221 0.098)
OKLCHoklch(71.59% 0.1 102.7)
XYZxyz(33.0778, 37.0920, 14.6477)
Luminance0.3709 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFA658 #5861AF
analogous
#AF7B58 #AFA658 #8DAF58
triadic
#AFA658 #58AFA6 #A658AF
tetradic
#AFA658 #58AF7B #5861AF #AF588D
square
#AFA658 #58AF7B #5861AF #AF588D
split-complementary
#AFA658 #588DAF #7B58AF
monochromatic
#5F5A2E #888141 #AFA658 #C3BC81 #D7D2AB

Accessibility & contrast

On white

2.49
#AFA658 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.42
#AFA658 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFA658
8.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFA658#FFFFFF#000000##000000
##AFA6581.002.498.428.42
#FFFFFF2.491.0021.0021.00
#0000008.4221.001.001.00
##0000008.4221.001.001.00

Color blindness preview

Protanopia (red-blind)
#B2A151
Deuteranopia (green-blind)
#B5A65C
Tritanopia (blue-blind)
#BA9D94
Achromatopsia (no color)
#A4A4A4

Design tokens & code

CSS
--color: #afa658;
/* rgb */ color: rgb(175, 166, 88);
/* oklch */ color: oklch(71.6% 0.100 102.7);
Tailwind
colors: {
  custom: {
    50: '#c9c089',
    500: '#afa658',
    950: '#000000',
  },
}
SCSS
$custom: #afa658;
$custom-light: #c9c089;
$custom-dark: #000000;
JSON
{
  "hex": "#afa658",
  "rgb": {
    "r": 175,
    "g": 166,
    "b": 88
  },
  "hsl": {
    "h": 53.793,
    "s": 35.223,
    "l": 51.569
  },
  "oklch": {
    "l": 0.71589,
    "c": 0.10046,
    "h": 102.7
  },
  "luminance": 0.37091
}

Semantic roles & 50–950 ramp

primary
#AFA658
secondary
#9EA2C5
accent
#68CB5D
background
#FCFBF8
surface
#F8F7F0
border
#D1D0CB
text
#13120C
muted
#82817D

Preview Lab

Preview with #AFA658

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

Preview Lab → · Contrast checker → · Palette generator →

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