#AFB84B#AFB84B

#AFB84B is a light, vivid yellow. Relative luminance 0.439; OKLCH L 75.4% C 0.133 H 113.5°. Best body text is #000000 at 9.78:1 contrast (WCAG AA passes).

Color values

HEX#AFB84B
RGBrgb(175, 184, 75)
HSLhsl(65, 43%, 51%)
HSVhsv(65, 59%, 72%)
CMYKcmyk(4.9%, 0%, 59.2%, 27.8%)
CIE-LABlab(72.16, -17.95, 52.95)
CIE-LCHlch(72.16, 55.91, 108.73°)
OKLaboklab(75.38% -0.0531 0.1219)
OKLCHoklch(75.38% 0.133 113.5)
XYZxyz(36.0905, 43.9036, 13.2283)
Luminance0.4390 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFB84B #544BB8
analogous
#B88A4B #AFB84B #78B84B
triadic
#AFB84B #4BAFB8 #B84BAF
tetradic
#AFB84B #4BB88A #544BB8 #B84B78
square
#AFB84B #4BB88A #544BB8 #B84B78
split-complementary
#AFB84B #4B78B8 #8A4BB8
monochromatic
#5D6227 #878E38 #AFB84B #C3C977 #D6DBA3

Accessibility & contrast

On white

2.15
#AFB84B on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.78
#AFB84B on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFB84B
9.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFB84B#FFFFFF#000000##000000
##AFB84B1.002.159.789.78
#FFFFFF2.151.0021.0021.00
#0000009.7821.001.001.00
##0000009.7821.001.001.00

Color blindness preview

Protanopia (red-blind)
#C5B03F
Deuteranopia (green-blind)
#C4B252
Tritanopia (blue-blind)
#BAAEA1
Achromatopsia (no color)
#B1B1B1

Design tokens & code

CSS
--color: #afb84b;
/* rgb */ color: rgb(175, 184, 75);
/* oklch */ color: oklch(75.4% 0.133 113.5);
Tailwind
colors: {
  custom: {
    50: '#c9cd82',
    500: '#afb84b',
    950: '#000000',
  },
}
SCSS
$custom: #afb84b;
$custom-light: #c9cd82;
$custom-dark: #000000;
JSON
{
  "hex": "#afb84b",
  "rgb": {
    "r": 175,
    "g": 184,
    "b": 75
  },
  "hsl": {
    "h": 64.954,
    "s": 43.426,
    "l": 50.784
  },
  "oklch": {
    "l": 0.75383,
    "c": 0.13299,
    "h": 113.5
  },
  "luminance": 0.43903
}

Semantic roles & 50–950 ramp

primary
#AFB84B
secondary
#9B97C8
accent
#55D35F
background
#FCFCF8
surface
#F9F8EF
border
#D2D1CA
text
#13130B
muted
#82827C

Preview Lab

Preview with #AFB84B

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

Preview Lab → · Contrast checker → · Palette generator →

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