#AFB258#AFB258

#AFB258 is a light, moderate yellow. Relative luminance 0.417; OKLCH L 74.2% C 0.114 H 110.6°. Best body text is #000000 at 9.33:1 contrast (WCAG AA passes).

Color values

HEX#AFB258
RGBrgb(175, 178, 88)
HSLhsl(62, 37%, 52%)
HSVhsv(62, 51%, 70%)
CMYKcmyk(1.7%, 0%, 50.6%, 30.2%)
CIE-LABlab(70.64, -13.82, 45.15)
CIE-LCHlch(70.64, 47.22, 107.02°)
OKLaboklab(74.21% -0.04 0.1066)
OKLCHoklch(74.21% 0.114 110.6)
XYZxyz(35.3618, 41.6601, 15.4090)
Luminance0.4166 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFB258 #5B58B2
analogous
#B28858 #AFB258 #82B258
triadic
#AFB258 #58AFB2 #B258AF
tetradic
#AFB258 #58B288 #5B58B2 #B25882
square
#AFB258 #58B288 #5B58B2 #B25882
split-complementary
#AFB258 #5882B2 #8858B2
monochromatic
#61622D #8A8C41 #AFB258 #C3C582 #D7D9AC

Accessibility & contrast

On white

2.25
#AFB258 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.33
#AFB258 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFB258
9.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFB258#FFFFFF#000000##000000
##AFB2581.002.259.339.33
#FFFFFF2.251.0021.0021.00
#0000009.3321.001.001.00
##0000009.3321.001.001.00

Color blindness preview

Protanopia (red-blind)
#BEAB50
Deuteranopia (green-blind)
#BFAE5D
Tritanopia (blue-blind)
#B9A99D
Achromatopsia (no color)
#ADADAD

Design tokens & code

CSS
--color: #afb258;
/* rgb */ color: rgb(175, 178, 88);
/* oklch */ color: oklch(74.2% 0.114 110.6);
Tailwind
colors: {
  custom: {
    50: '#c9c889',
    500: '#afb258',
    950: '#000000',
  },
}
SCSS
$custom: #afb258;
$custom-light: #c9c889;
$custom-dark: #000000;
JSON
{
  "hex": "#afb258",
  "rgb": {
    "r": 175,
    "g": 178,
    "b": 88
  },
  "hsl": {
    "h": 62,
    "s": 36.885,
    "l": 52.157
  },
  "oklch": {
    "l": 0.74206,
    "c": 0.11385,
    "h": 110.6
  },
  "luminance": 0.41659
}

Semantic roles & 50–950 ramp

primary
#AFB258
secondary
#A19FC7
accent
#5BCD5F
background
#FCFCF8
surface
#F8F8F0
border
#D1D1CB
text
#13130C
muted
#82827D

Preview Lab

Preview with #AFB258

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

Preview Lab → · Contrast checker → · Palette generator →

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