#AFBD38#AFBD38

#AFBD38 is a light, vivid yellow. Relative luminance 0.458; OKLCH L 76.3% C 0.153 H 115.3°. Best body text is #000000 at 10.16:1 contrast (WCAG AA passes).

Color values

HEX#AFBD38
RGBrgb(175, 189, 56)
HSLhsl(66, 54%, 48%)
HSVhsv(66, 70%, 74%)
CMYKcmyk(7.4%, 0%, 70.4%, 25.9%)
CIE-LABlab(73.41, -21.66, 62.00)
CIE-LCHlch(73.41, 65.68, 109.26°)
OKLaboklab(76.34% -0.0654 0.1382)
OKLCHoklch(76.34% 0.153 115.3)
XYZxyz(36.5916, 45.7953, 10.6524)
Luminance0.4580 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFBD38 #4638BD
analogous
#BD8838 #AFBD38 #6CBD38
triadic
#AFBD38 #38AFBD #BD38AF
tetradic
#AFBD38 #38BD88 #4638BD #BD386C
square
#AFBD38 #38BD88 #4638BD #BD386C
split-complementary
#AFBD38 #386CBD #8838BD
monochromatic
#585F1C #838E2A #AFBD38 #C5D062 #D6DE91

Accessibility & contrast

On white

2.07
#AFBD38 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

10.16
#AFBD38 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFBD38
10.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFBD38#FFFFFF#000000##000000
##AFBD381.002.0710.1610.16
#FFFFFF2.071.0021.0021.00
#00000010.1621.001.001.00
##00000010.1621.001.001.00

Color blindness preview

Protanopia (red-blind)
#CAB321
Deuteranopia (green-blind)
#C9B542
Tritanopia (blue-blind)
#BAB2A3
Achromatopsia (no color)
#B4B4B4

Design tokens & code

CSS
--color: #afbd38;
/* rgb */ color: rgb(175, 189, 56);
/* oklch */ color: oklch(76.3% 0.153 115.3);
Tailwind
colors: {
  custom: {
    50: '#cad077',
    500: '#afbd38',
    950: '#000000',
  },
}
SCSS
$custom: #afbd38;
$custom-light: #cad077;
$custom-dark: #000000;
JSON
{
  "hex": "#afbd38",
  "rgb": {
    "r": 175,
    "g": 189,
    "b": 56
  },
  "hsl": {
    "h": 66.316,
    "s": 54.286,
    "l": 48.039
  },
  "oklch": {
    "l": 0.76336,
    "c": 0.15291,
    "h": 115.3
  },
  "luminance": 0.45795
}

Semantic roles & 50–950 ramp

primary
#AFBD38
secondary
#8E87C9
accent
#4ADE5A
background
#FCFCF7
surface
#F9F9EE
border
#D2D2C9
text
#141409
muted
#82827B

Preview Lab

Preview with #AFBD38

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

Preview Lab → · Contrast checker → · Palette generator →

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