#AFBF4C#AFBF4C

#AFBF4C is a light, vivid yellow. Relative luminance 0.469; OKLCH L 77.0% C 0.140 H 116.5°. Best body text is #000000 at 10.38:1 contrast (WCAG AA passes).

Color values

HEX#AFBF4C
RGBrgb(175, 191, 76)
HSLhsl(68, 47%, 52%)
HSVhsv(68, 60%, 75%)
CMYKcmyk(8.4%, 0%, 60.2%, 25.1%)
CIE-LABlab(74.12, -21.37, 54.67)
CIE-LCHlch(74.12, 58.70, 111.35°)
OKLaboklab(76.96% -0.0626 0.1257)
OKLCHoklch(76.96% 0.14 116.5)
XYZxyz(37.6152, 46.8978, 13.9067)
Luminance0.4690 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFBF4C #5C4CBF
analogous
#BF964C #AFBF4C #75BF4C
triadic
#AFBF4C #4CAFBF #BF4CAF
tetradic
#AFBF4C #4CBF96 #5C4CBF #BF4C75
square
#AFBF4C #4CBF96 #5C4CBF #BF4C75
split-complementary
#AFBF4C #4C75BF #964CBF
monochromatic
#616B26 #8A9836 #AFBF4C #C3CF79 #D7DFA6

Accessibility & contrast

On white

2.02
#AFBF4C on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

10.38
#AFBF4C on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFBF4C
10.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFBF4C#FFFFFF#000000##000000
##AFBF4C1.002.0210.3810.38
#FFFFFF2.021.0021.0021.00
#00000010.3821.001.001.00
##00000010.3821.001.001.00

Color blindness preview

Protanopia (red-blind)
#CBB63F
Deuteranopia (green-blind)
#CAB753
Tritanopia (blue-blind)
#B9B5A7
Achromatopsia (no color)
#B6B6B6

Design tokens & code

CSS
--color: #afbf4c;
/* rgb */ color: rgb(175, 191, 76);
/* oklch */ color: oklch(77.0% 0.140 116.5);
Tailwind
colors: {
  custom: {
    50: '#c9d283',
    500: '#afbf4c',
    950: '#000000',
  },
}
SCSS
$custom: #afbf4c;
$custom-light: #c9d283;
$custom-dark: #000000;
JSON
{
  "hex": "#afbf4c",
  "rgb": {
    "r": 175,
    "g": 191,
    "b": 76
  },
  "hsl": {
    "h": 68.348,
    "s": 47.325,
    "l": 52.353
  },
  "oklch": {
    "l": 0.76956,
    "c": 0.14043,
    "h": 116.5
  },
  "luminance": 0.46897
}

Semantic roles & 50–950 ramp

primary
#AFBF4C
secondary
#A19ACC
accent
#51D764
background
#FCFCF8
surface
#F9F9EF
border
#D2D2CA
text
#13140B
muted
#82827C

Preview Lab

Preview with #AFBF4C

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

Preview Lab → · Contrast checker → · Palette generator →

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