#AFB52D#AFB52D

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

Color values

HEX#AFB52D
RGBrgb(175, 181, 45)
HSLhsl(63, 60%, 44%)
HSVhsv(63, 75%, 71%)
CMYKcmyk(3.3%, 0%, 75.1%, 29%)
CIE-LABlab(71.11, -18.21, 63.63)
CIE-LCHlch(71.11, 66.18, 105.97°)
OKLaboklab(74.47% -0.0568 0.1397)
OKLCHoklch(74.47% 0.151 112.1)
XYZxyz(34.6779, 42.3520, 8.8301)
Luminance0.4235 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFB52D #332DB5
analogous
#B5772D #AFB52D #6BB52D
triadic
#AFB52D #2DAFB5 #B52DAF
tetradic
#AFB52D #2DB577 #332DB5 #B52D6B
square
#AFB52D #2DB577 #332DB5 #B52D6B
split-complementary
#AFB52D #2D6BB5 #772DB5
monochromatic
#505315 #808421 #AFB52D #CDD34D #DBDF7E

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##AFB52D#FFFFFF#000000##000000
##AFB52D1.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)
#C3AC0C
Deuteranopia (green-blind)
#C4B038
Tritanopia (blue-blind)
#BBAA9B
Achromatopsia (no color)
#AEAEAE

Design tokens & code

CSS
--color: #afb52d;
/* rgb */ color: rgb(175, 181, 45);
/* oklch */ color: oklch(74.5% 0.151 112.1);
Tailwind
colors: {
  custom: {
    50: '#cacb71',
    500: '#afb52d',
    950: '#000000',
  },
}
SCSS
$custom: #afb52d;
$custom-light: #cacb71;
$custom-dark: #000000;
JSON
{
  "hex": "#afb52d",
  "rgb": {
    "r": 175,
    "g": 181,
    "b": 45
  },
  "hsl": {
    "h": 62.647,
    "s": 60.177,
    "l": 44.314
  },
  "oklch": {
    "l": 0.74473,
    "c": 0.15083,
    "h": 112.1
  },
  "luminance": 0.42351
}

Semantic roles & 50–950 ramp

primary
#AFB52D
secondary
#7A76C7
accent
#44E34B
background
#FCFCF7
surface
#F9F8ED
border
#D2D1C8
text
#141308
muted
#82827B

Preview Lab

Preview with #AFB52D

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

Preview Lab → · Contrast checker → · Palette generator →

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