#AFB95C#AFB95C

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

Color values

HEX#AFB95C
RGBrgb(175, 185, 92)
HSLhsl(66, 40%, 54%)
HSVhsv(66, 50%, 73%)
CMYKcmyk(5.4%, 0%, 50.3%, 27.5%)
CIE-LABlab(72.62, -17.02, 45.56)
CIE-LCHlch(72.62, 48.63, 110.49°)
OKLaboklab(75.8% -0.0487 0.1078)
OKLCHoklch(75.8% 0.118 114.3)
XYZxyz(36.9605, 44.5851, 16.7819)
Luminance0.4459 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFB95C #665CB9
analogous
#B9955C #AFB95C #81B95C
triadic
#AFB95C #5CAFB9 #B95CAF
tetradic
#AFB95C #5CB995 #665CB9 #B95C81
square
#AFB95C #5CB995 #665CB9 #B95C81
split-complementary
#AFB95C #5C81B9 #955CB9
monochromatic
#666C2E #8E9741 #AFB95C #C4CB87 #D9DEB2

Accessibility & contrast

On white

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

On black

9.92
#AFB95C on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFB95C
9.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFB95C#FFFFFF#000000##000000
##AFB95C1.002.129.929.92
#FFFFFF2.121.0021.0021.00
#0000009.9221.001.001.00
##0000009.9221.001.001.00

Color blindness preview

Protanopia (red-blind)
#C4B154
Deuteranopia (green-blind)
#C4B361
Tritanopia (blue-blind)
#B8B0A4
Achromatopsia (no color)
#B2B2B2

Design tokens & code

CSS
--color: #afb95c;
/* rgb */ color: rgb(175, 185, 92);
/* oklch */ color: oklch(75.8% 0.118 114.3);
Tailwind
colors: {
  custom: {
    50: '#c9ce8c',
    500: '#afb95c',
    950: '#000000',
  },
}
SCSS
$custom: #afb95c;
$custom-light: #c9ce8c;
$custom-dark: #000000;
JSON
{
  "hex": "#afb95c",
  "rgb": {
    "r": 175,
    "g": 185,
    "b": 92
  },
  "hsl": {
    "h": 66.452,
    "s": 39.914,
    "l": 54.314
  },
  "oklch": {
    "l": 0.75803,
    "c": 0.11833,
    "h": 114.3
  },
  "luminance": 0.44585
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #AFB95C

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

Preview Lab → · Contrast checker → · Palette generator →

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