#AFB95B#AFB95B

#AFB95B is a light, moderate yellow. Relative luminance 0.446; OKLCH L 75.8% C 0.119 H 114.3°. Best body text is #000000 at 9.91:1 contrast (WCAG AA passes).

Color values

HEX#AFB95B
RGBrgb(175, 185, 91)
HSLhsl(66, 40%, 54%)
HSVhsv(66, 51%, 73%)
CMYKcmyk(5.4%, 0%, 50.8%, 27.5%)
CIE-LABlab(72.61, -17.11, 46.03)
CIE-LCHlch(72.61, 49.11, 110.40°)
OKLaboklab(75.79% -0.0491 0.1088)
OKLCHoklch(75.79% 0.119 114.3)
XYZxyz(36.9171, 44.5678, 16.5532)
Luminance0.4457 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFB95B #655BB9
analogous
#B9945B #AFB95B #80B95B
triadic
#AFB95B #5BAFB9 #B95BAF
tetradic
#AFB95B #5BB994 #655BB9 #B95B80
square
#AFB95B #5BB994 #655BB9 #B95B80
split-complementary
#AFB95B #5B80B9 #945BB9
monochromatic
#656C2E #8D9740 #AFB95B #C4CB86 #D9DEB1

Accessibility & contrast

On white

2.12
#AFB95B on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.91
#AFB95B on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFB95B
9.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFB95B#FFFFFF#000000##000000
##AFB95B1.002.129.919.91
#FFFFFF2.121.0021.0021.00
#0000009.9121.001.001.00
##0000009.9121.001.001.00

Color blindness preview

Protanopia (red-blind)
#C4B152
Deuteranopia (green-blind)
#C4B360
Tritanopia (blue-blind)
#B9B0A4
Achromatopsia (no color)
#B2B2B2

Design tokens & code

CSS
--color: #afb95b;
/* rgb */ color: rgb(175, 185, 91);
/* oklch */ color: oklch(75.8% 0.119 114.3);
Tailwind
colors: {
  custom: {
    50: '#c9ce8c',
    500: '#afb95b',
    950: '#000000',
  },
}
SCSS
$custom: #afb95b;
$custom-light: #c9ce8c;
$custom-dark: #000000;
JSON
{
  "hex": "#afb95b",
  "rgb": {
    "r": 175,
    "g": 185,
    "b": 91
  },
  "hsl": {
    "h": 66.383,
    "s": 40.171,
    "l": 54.118
  },
  "oklch": {
    "l": 0.7579,
    "c": 0.11934,
    "h": 114.3
  },
  "luminance": 0.44567
}

Semantic roles & 50–950 ramp

primary
#AFB95B
secondary
#A8A4CC
accent
#58D065
background
#FCFCF8
surface
#F8F9F0
border
#D1D2CB
text
#13130C
muted
#82827D

Preview Lab

Preview with #AFB95B

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

Preview Lab → · Contrast checker → · Palette generator →

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