#AFB52B#AFB52B

#AFB52B is a light, vivid yellow. Relative luminance 0.423; OKLCH L 74.5% C 0.152 H 112.1°. Best body text is #000000 at 9.47:1 contrast (WCAG AA passes).

Color values

HEX#AFB52B
RGBrgb(175, 181, 43)
HSLhsl(63, 62%, 44%)
HSVhsv(63, 76%, 71%)
CMYKcmyk(3.3%, 0%, 76.2%, 29%)
CIE-LABlab(71.10, -18.29, 64.26)
CIE-LCHlch(71.10, 66.81, 105.89°)
OKLaboklab(74.46% -0.0572 0.1407)
OKLCHoklch(74.46% 0.152 112.1)
XYZxyz(34.6403, 42.3370, 8.6321)
Luminance0.4234 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFB52B #312BB5
analogous
#B5762B #AFB52B #6AB52B
triadic
#AFB52B #2BAFB5 #B52BAF
tetradic
#AFB52B #2BB576 #312BB5 #B52B6A
square
#AFB52B #2BB576 #312BB5 #B52B6A
split-complementary
#AFB52B #2B6AB5 #762BB5
monochromatic
#4F5214 #7F841F #AFB52B #CED449 #DBE07B

Accessibility & contrast

On white

2.22
#AFB52B on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.47
#AFB52B on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFB52B
9.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFB52B#FFFFFF#000000##000000
##AFB52B1.002.229.479.47
#FFFFFF2.221.0021.0021.00
#0000009.4721.001.001.00
##0000009.4721.001.001.00

Color blindness preview

Protanopia (red-blind)
#C3AC05
Deuteranopia (green-blind)
#C4B037
Tritanopia (blue-blind)
#BBAA9B
Achromatopsia (no color)
#AEAEAE

Design tokens & code

CSS
--color: #afb52b;
/* rgb */ color: rgb(175, 181, 43);
/* oklch */ color: oklch(74.5% 0.152 112.1);
Tailwind
colors: {
  custom: {
    50: '#cbca70',
    500: '#afb52b',
    950: '#000000',
  },
}
SCSS
$custom: #afb52b;
$custom-light: #cbca70;
$custom-dark: #000000;
JSON
{
  "hex": "#afb52b",
  "rgb": {
    "r": 175,
    "g": 181,
    "b": 43
  },
  "hsl": {
    "h": 62.609,
    "s": 61.607,
    "l": 43.922
  },
  "oklch": {
    "l": 0.74462,
    "c": 0.1519,
    "h": 112.1
  },
  "luminance": 0.42336
}

Semantic roles & 50–950 ramp

primary
#AFB52B
secondary
#7874C8
accent
#43E54A
background
#FCFCF7
surface
#F9F8ED
border
#D2D1C8
text
#141308
muted
#82827B

Preview Lab

Preview with #AFB52B

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

Preview Lab → · Contrast checker → · Palette generator →

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