#AFB52C#AFB52C

#AFB52C is a light, vivid yellow. Relative luminance 0.423; 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#AFB52C
RGBrgb(175, 181, 44)
HSLhsl(63, 61%, 44%)
HSVhsv(63, 76%, 71%)
CMYKcmyk(3.3%, 0%, 75.7%, 29%)
CIE-LABlab(71.11, -18.25, 63.94)
CIE-LCHlch(71.11, 66.50, 105.93°)
OKLaboklab(74.47% -0.057 0.1402)
OKLCHoklch(74.47% 0.151 112.1)
XYZxyz(34.6588, 42.3444, 8.7299)
Luminance0.4234 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFB52C #322CB5
analogous
#B5772C #AFB52C #6BB52C
triadic
#AFB52C #2CAFB5 #B52CAF
tetradic
#AFB52C #2CB577 #322CB5 #B52C6B
square
#AFB52C #2CB577 #322CB5 #B52C6B
split-complementary
#AFB52C #2C6BB5 #772CB5
monochromatic
#505314 #7F8420 #AFB52C #CDD34B #DBDF7C

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

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

Design tokens & code

CSS
--color: #afb52c;
/* rgb */ color: rgb(175, 181, 44);
/* oklch */ color: oklch(74.5% 0.151 112.1);
Tailwind
colors: {
  custom: {
    50: '#cbcb70',
    500: '#afb52c',
    950: '#000000',
  },
}
SCSS
$custom: #afb52c;
$custom-light: #cbcb70;
$custom-dark: #000000;
JSON
{
  "hex": "#afb52c",
  "rgb": {
    "r": 175,
    "g": 181,
    "b": 44
  },
  "hsl": {
    "h": 62.628,
    "s": 60.889,
    "l": 44.118
  },
  "oklch": {
    "l": 0.74467,
    "c": 0.15137,
    "h": 112.1
  },
  "luminance": 0.42344
}

Semantic roles & 50–950 ramp

primary
#AFB52C
secondary
#7975C8
accent
#44E44B
background
#FCFCF7
surface
#F9F8ED
border
#D2D1C8
text
#141308
muted
#82827B

Preview Lab

Preview with #AFB52C

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

Preview Lab → · Contrast checker → · Palette generator →

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