#AFBA4B#AFBA4B

#AFBA4B is a light, vivid yellow. Relative luminance 0.447; OKLCH L 75.8% C 0.135 H 114.4°. Best body text is #000000 at 9.95:1 contrast (WCAG AA passes).

Color values

HEX#AFBA4B
RGBrgb(175, 186, 75)
HSLhsl(66, 45%, 51%)
HSVhsv(66, 60%, 73%)
CMYKcmyk(5.9%, 0%, 59.7%, 27.1%)
CIE-LABlab(72.72, -18.96, 53.56)
CIE-LCHlch(72.72, 56.82, 109.49°)
OKLaboklab(75.83% -0.0559 0.1232)
OKLCHoklch(75.83% 0.135 114.4)
XYZxyz(36.5089, 44.7404, 13.3678)
Luminance0.4474 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFBA4B #564BBA
analogous
#BA8D4B #AFBA4B #77BA4B
triadic
#AFBA4B #4BAFBA #BA4BAF
tetradic
#AFBA4B #4BBA8D #564BBA #BA4B77
square
#AFBA4B #4BBA8D #564BBA #BA4B77
split-complementary
#AFBA4B #4B77BA #8D4BBA
monochromatic
#5E6426 #889037 #AFBA4B #C3CB77 #D6DCA3

Accessibility & contrast

On white

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

On black

9.95
#AFBA4B on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFBA4B
9.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFBA4B#FFFFFF#000000##000000
##AFBA4B1.002.119.959.95
#FFFFFF2.111.0021.0021.00
#0000009.9521.001.001.00
##0000009.9521.001.001.00

Color blindness preview

Protanopia (red-blind)
#C6B13E
Deuteranopia (green-blind)
#C6B452
Tritanopia (blue-blind)
#B9B0A2
Achromatopsia (no color)
#B2B2B2

Design tokens & code

CSS
--color: #afba4b;
/* rgb */ color: rgb(175, 186, 75);
/* oklch */ color: oklch(75.8% 0.135 114.4);
Tailwind
colors: {
  custom: {
    50: '#c9ce82',
    500: '#afba4b',
    950: '#000000',
  },
}
SCSS
$custom: #afba4b;
$custom-light: #c9ce82;
$custom-dark: #000000;
JSON
{
  "hex": "#afba4b",
  "rgb": {
    "r": 175,
    "g": 186,
    "b": 75
  },
  "hsl": {
    "h": 65.946,
    "s": 44.578,
    "l": 51.176
  },
  "oklch": {
    "l": 0.75829,
    "c": 0.13533,
    "h": 114.4
  },
  "luminance": 0.4474
}

Semantic roles & 50–950 ramp

primary
#AFBA4B
secondary
#9D98C9
accent
#54D460
background
#FCFCF8
surface
#F9F9EF
border
#D2D2CA
text
#13130B
muted
#82827C

Preview Lab

Preview with #AFBA4B

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

Preview Lab → · Contrast checker → · Palette generator →

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