#AFBF3B#AFBF3B

#AFBF3B is a light, vivid yellow. Relative luminance 0.467; OKLCH L 76.8% C 0.153 H 116.1°. Best body text is #000000 at 10.34:1 contrast (WCAG AA passes).

Color values

HEX#AFBF3B
RGBrgb(175, 191, 59)
HSLhsl(67, 53%, 49%)
HSVhsv(67, 69%, 75%)
CMYKcmyk(8.4%, 0%, 69.1%, 25.1%)
CIE-LABlab(73.99, -22.49, 61.46)
CIE-LCHlch(73.99, 65.45, 110.09°)
OKLaboklab(76.81% -0.0674 0.1376)
OKLCHoklch(76.81% 0.153 116.1)
XYZxyz(37.1003, 46.6919, 11.1948)
Luminance0.4669 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFBF3B #4B3BBF
analogous
#BF8D3B #AFBF3B #6DBF3B
triadic
#AFBF3B #3BAFBF #BF3BAF
tetradic
#AFBF3B #3BBF8D #4B3BBF #BF3B6D
square
#AFBF3B #3BBF8D #4B3BBF #BF3B6D
split-complementary
#AFBF3B #3B6DBF #8D3BBF
monochromatic
#59611E #84902D #AFBF3B #C3D067 #D6DF96

Accessibility & contrast

On white

2.03
#AFBF3B on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

10.34
#AFBF3B on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFBF3B
10.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFBF3B#FFFFFF#000000##000000
##AFBF3B1.002.0310.3410.34
#FFFFFF2.031.0021.0021.00
#00000010.3421.001.001.00
##00000010.3421.001.001.00

Color blindness preview

Protanopia (red-blind)
#CCB526
Deuteranopia (green-blind)
#CBB745
Tritanopia (blue-blind)
#BAB4A5
Achromatopsia (no color)
#B6B6B6

Design tokens & code

CSS
--color: #afbf3b;
/* rgb */ color: rgb(175, 191, 59);
/* oklch */ color: oklch(76.8% 0.153 116.1);
Tailwind
colors: {
  custom: {
    50: '#cad279',
    500: '#afbf3b',
    950: '#000000',
  },
}
SCSS
$custom: #afbf3b;
$custom-light: #cad279;
$custom-dark: #000000;
JSON
{
  "hex": "#afbf3b",
  "rgb": {
    "r": 175,
    "g": 191,
    "b": 59
  },
  "hsl": {
    "h": 67.273,
    "s": 52.8,
    "l": 49.02
  },
  "oklch": {
    "l": 0.76808,
    "c": 0.1532,
    "h": 116.1
  },
  "luminance": 0.46691
}

Semantic roles & 50–950 ramp

primary
#AFBF3B
secondary
#938CCA
accent
#4CDC5D
background
#FCFCF7
surface
#F9F9EE
border
#D2D2C9
text
#14140A
muted
#82827C

Preview Lab

Preview with #AFBF3B

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

Preview Lab → · Contrast checker → · Palette generator →

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