#AFA258#AFA258

#AFA258 is a light, moderate yellow. Relative luminance 0.357; OKLCH L 70.7% C 0.096 H 99.5°. Best body text is #000000 at 8.13:1 contrast (WCAG AA passes).

Color values

HEX#AFA258
RGBrgb(175, 162, 88)
HSLhsl(51, 35%, 52%)
HSVhsv(51, 50%, 69%)
CMYKcmyk(0%, 7.4%, 49.7%, 31.4%)
CIE-LABlab(66.26, -5.43, 39.91)
CIE-LCHlch(66.26, 40.27, 97.74°)
OKLaboklab(70.73% -0.016 0.0951)
OKLCHoklch(70.73% 0.096 99.5)
XYZxyz(32.3619, 35.6604, 14.4091)
Luminance0.3566 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFA258 #5865AF
analogous
#AF7758 #AFA258 #91AF58
triadic
#AFA258 #58AFA2 #A258AF
tetradic
#AFA258 #58AF77 #5865AF #AF5891
square
#AFA258 #58AF77 #5865AF #AF5891
split-complementary
#AFA258 #5891AF #7758AF
monochromatic
#5F582E #887E41 #AFA258 #C3B981 #D7D0AB

Accessibility & contrast

On white

2.58
#AFA258 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.13
#AFA258 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFA258
8.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFA258#FFFFFF#000000##000000
##AFA2581.002.588.138.13
#FFFFFF2.581.0021.0021.00
#0000008.1321.001.001.00
##0000008.1321.001.001.00

Color blindness preview

Protanopia (red-blind)
#AE9E52
Deuteranopia (green-blind)
#B2A35B
Tritanopia (blue-blind)
#BA9991
Achromatopsia (no color)
#A1A1A1

Design tokens & code

CSS
--color: #afa258;
/* rgb */ color: rgb(175, 162, 88);
/* oklch */ color: oklch(70.7% 0.096 99.5);
Tailwind
colors: {
  custom: {
    50: '#c9bd89',
    500: '#afa258',
    950: '#000000',
  },
}
SCSS
$custom: #afa258;
$custom-light: #c9bd89;
$custom-dark: #000000;
JSON
{
  "hex": "#afa258",
  "rgb": {
    "r": 175,
    "g": 162,
    "b": 88
  },
  "hsl": {
    "h": 51.034,
    "s": 35.223,
    "l": 51.569
  },
  "oklch": {
    "l": 0.70727,
    "c": 0.09643,
    "h": 99.5
  },
  "luminance": 0.35659
}

Semantic roles & 50–950 ramp

primary
#AFA258
secondary
#9EA4C5
accent
#6DCB5D
background
#FCFBF8
surface
#F8F6F0
border
#D1D0CB
text
#13120B
muted
#82817C

Preview Lab

Preview with #AFA258

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

Preview Lab → · Contrast checker → · Palette generator →

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