#AFB64C#AFB64C

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

Color values

HEX#AFB64C
RGBrgb(175, 182, 76)
HSLhsl(64, 42%, 51%)
HSVhsv(64, 58%, 71%)
CMYKcmyk(3.8%, 0%, 58.2%, 28.6%)
CIE-LABlab(71.62, -16.86, 51.90)
CIE-LCHlch(71.62, 54.57, 108.00°)
OKLaboklab(74.95% -0.0499 0.1198)
OKLCHoklch(74.95% 0.13 112.6)
XYZxyz(35.7125, 43.0924, 13.2725)
Luminance0.4309 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFB64C #534CB6
analogous
#B6884C #AFB64C #7AB64C
triadic
#AFB64C #4CAFB6 #B64CAF
tetradic
#AFB64C #4CB688 #534CB6 #B64C7A
square
#AFB64C #4CB688 #534CB6 #B64C7A
split-complementary
#AFB64C #4C7AB6 #884CB6
monochromatic
#5D6027 #868C39 #AFB64C #C2C877 #D6D9A3

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##AFB64C#FFFFFF#000000##000000
##AFB64C1.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)
#C3AE40
Deuteranopia (green-blind)
#C3B152
Tritanopia (blue-blind)
#BAAC9F
Achromatopsia (no color)
#AFAFAF

Design tokens & code

CSS
--color: #afb64c;
/* rgb */ color: rgb(175, 182, 76);
/* oklch */ color: oklch(74.9% 0.130 112.6);
Tailwind
colors: {
  custom: {
    50: '#c9cb82',
    500: '#afb64c',
    950: '#000000',
  },
}
SCSS
$custom: #afb64c;
$custom-light: #c9cb82;
$custom-dark: #000000;
JSON
{
  "hex": "#afb64c",
  "rgb": {
    "r": 175,
    "g": 182,
    "b": 76
  },
  "hsl": {
    "h": 63.962,
    "s": 42.063,
    "l": 50.588
  },
  "oklch": {
    "l": 0.74949,
    "c": 0.1298,
    "h": 112.6
  },
  "luminance": 0.43092
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #AFB64C

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

Preview Lab → · Contrast checker → · Palette generator →

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