#AFBA4E#AFBA4E

#AFBA4E is a light, vivid yellow. Relative luminance 0.448; OKLCH L 75.9% C 0.133 H 114.5°. Best body text is #000000 at 9.96:1 contrast (WCAG AA passes).

Color values

HEX#AFBA4E
RGBrgb(175, 186, 78)
HSLhsl(66, 44%, 52%)
HSVhsv(66, 58%, 73%)
CMYKcmyk(5.9%, 0%, 58.1%, 27.1%)
CIE-LABlab(72.75, -18.73, 52.26)
CIE-LCHlch(72.75, 55.51, 109.72°)
OKLaboklab(75.86% -0.055 0.1208)
OKLCHoklch(75.86% 0.133 114.5)
XYZxyz(36.6140, 44.7824, 13.9213)
Luminance0.4478 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFBA4E #594EBA
analogous
#BA8F4E #AFBA4E #79BA4E
triadic
#AFBA4E #4EAFBA #BA4EAF
tetradic
#AFBA4E #4EBA8F #594EBA #BA4E79
square
#AFBA4E #4EBA8F #594EBA #BA4E79
split-complementary
#AFBA4E #4E79BA #8F4EBA
monochromatic
#606628 #899239 #AFBA4E #C3CB7A #D7DCA6

Accessibility & contrast

On white

2.11
#AFBA4E on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.96
#AFBA4E on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFBA4E
9.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFBA4E#FFFFFF#000000##000000
##AFBA4E1.002.119.969.96
#FFFFFF2.111.0021.0021.00
#0000009.9621.001.001.00
##0000009.9621.001.001.00

Color blindness preview

Protanopia (red-blind)
#C6B242
Deuteranopia (green-blind)
#C6B455
Tritanopia (blue-blind)
#B9B0A3
Achromatopsia (no color)
#B2B2B2

Design tokens & code

CSS
--color: #afba4e;
/* rgb */ color: rgb(175, 186, 78);
/* oklch */ color: oklch(75.9% 0.133 114.5);
Tailwind
colors: {
  custom: {
    50: '#c9ce84',
    500: '#afba4e',
    950: '#000000',
  },
}
SCSS
$custom: #afba4e;
$custom-light: #c9ce84;
$custom-dark: #000000;
JSON
{
  "hex": "#afba4e",
  "rgb": {
    "r": 175,
    "g": 186,
    "b": 78
  },
  "hsl": {
    "h": 66.111,
    "s": 43.902,
    "l": 51.765
  },
  "oklch": {
    "l": 0.7586,
    "c": 0.13274,
    "h": 114.5
  },
  "luminance": 0.44782
}

Semantic roles & 50–950 ramp

primary
#AFBA4E
secondary
#9F9ACA
accent
#54D461
background
#FCFCF8
surface
#F9F9EF
border
#D2D2CA
text
#13130B
muted
#82827C

Preview Lab

Preview with #AFBA4E

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

Preview Lab → · Contrast checker → · Palette generator →

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