#AFB95A#AFB95A

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

Color values

HEX#AFB95A
RGBrgb(175, 185, 90)
HSLhsl(66, 40%, 54%)
HSVhsv(66, 51%, 73%)
CMYKcmyk(5.4%, 0%, 51.4%, 27.5%)
CIE-LABlab(72.59, -17.21, 46.49)
CIE-LCHlch(72.59, 49.58, 110.31°)
OKLaboklab(75.78% -0.0495 0.1097)
OKLCHoklch(75.78% 0.12 114.3)
XYZxyz(36.8742, 44.5506, 16.3275)
Luminance0.4455 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFB95A #645AB9
analogous
#B9945A #AFB95A #80B95A
triadic
#AFB95A #5AAFB9 #B95AAF
tetradic
#AFB95A #5AB994 #645AB9 #B95A80
square
#AFB95A #5AB994 #645AB9 #B95A80
split-complementary
#AFB95A #5A80B9 #945AB9
monochromatic
#656B2D #8D9640 #AFB95A #C4CB85 #D9DDB0

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##AFB95A#FFFFFF#000000##000000
##AFB95A1.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)
#C4B151
Deuteranopia (green-blind)
#C4B35F
Tritanopia (blue-blind)
#B9B0A3
Achromatopsia (no color)
#B2B2B2

Design tokens & code

CSS
--color: #afb95a;
/* rgb */ color: rgb(175, 185, 90);
/* oklch */ color: oklch(75.8% 0.120 114.3);
Tailwind
colors: {
  custom: {
    50: '#c9ce8b',
    500: '#afb95a',
    950: '#000000',
  },
}
SCSS
$custom: #afb95a;
$custom-light: #c9ce8b;
$custom-dark: #000000;
JSON
{
  "hex": "#afb95a",
  "rgb": {
    "r": 175,
    "g": 185,
    "b": 90
  },
  "hsl": {
    "h": 66.316,
    "s": 40.426,
    "l": 53.922
  },
  "oklch": {
    "l": 0.75777,
    "c": 0.12033,
    "h": 114.3
  },
  "luminance": 0.4455
}

Semantic roles & 50–950 ramp

primary
#AFB95A
secondary
#A7A3CC
accent
#58D064
background
#FCFCF8
surface
#F8F9F0
border
#D1D2CB
text
#13130C
muted
#82827D

Preview Lab

Preview with #AFB95A

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

Preview Lab → · Contrast checker → · Palette generator →

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