#AFB64B#AFB64B

#AFB64B is a light, vivid yellow. Relative luminance 0.431; OKLCH L 74.9% C 0.131 H 112.6°. Best body text is #000000 at 9.62:1 contrast (WCAG AA passes).

Color values

HEX#AFB64B
RGBrgb(175, 182, 75)
HSLhsl(64, 42%, 50%)
HSVhsv(64, 59%, 71%)
CMYKcmyk(3.8%, 0%, 58.8%, 28.6%)
CIE-LABlab(71.61, -16.94, 52.34)
CIE-LCHlch(71.61, 55.01, 107.94°)
OKLaboklab(74.94% -0.0503 0.1206)
OKLCHoklch(74.94% 0.131 112.6)
XYZxyz(35.6780, 43.0786, 13.0908)
Luminance0.4308 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFB64B #524BB6
analogous
#B6874B #AFB64B #7AB64B
triadic
#AFB64B #4BAFB6 #B64BAF
tetradic
#AFB64B #4BB687 #524BB6 #B64B7A
square
#AFB64B #4BB687 #524BB6 #B64B7A
split-complementary
#AFB64B #4B7AB6 #874BB6
monochromatic
#5C6027 #868B38 #AFB64B #C2C877 #D6D9A2

Accessibility & contrast

On white

2.18
#AFB64B on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.62
#AFB64B on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFB64B
9.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFB64B#FFFFFF#000000##000000
##AFB64B1.002.189.629.62
#FFFFFF2.181.0021.0021.00
#0000009.6221.001.001.00
##0000009.6221.001.001.00

Color blindness preview

Protanopia (red-blind)
#C3AE3F
Deuteranopia (green-blind)
#C3B151
Tritanopia (blue-blind)
#BAAC9F
Achromatopsia (no color)
#AFAFAF

Design tokens & code

CSS
--color: #afb64b;
/* rgb */ color: rgb(175, 182, 75);
/* oklch */ color: oklch(74.9% 0.131 112.6);
Tailwind
colors: {
  custom: {
    50: '#c9cb81',
    500: '#afb64b',
    950: '#000000',
  },
}
SCSS
$custom: #afb64b;
$custom-light: #c9cb81;
$custom-dark: #000000;
JSON
{
  "hex": "#afb64b",
  "rgb": {
    "r": 175,
    "g": 182,
    "b": 75
  },
  "hsl": {
    "h": 63.925,
    "s": 42.292,
    "l": 50.392
  },
  "oklch": {
    "l": 0.74939,
    "c": 0.13067,
    "h": 112.6
  },
  "luminance": 0.43078
}

Semantic roles & 50–950 ramp

primary
#AFB64B
secondary
#9A97C6
accent
#56D25E
background
#FCFCF8
surface
#F9F8EF
border
#D2D1CA
text
#13130B
muted
#82827C

Preview Lab

Preview with #AFB64B

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

Preview Lab → · Contrast checker → · Palette generator →

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