#AFB52A#AFB52A

#AFB52A 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#AFB52A
RGBrgb(175, 181, 42)
HSLhsl(63, 62%, 44%)
HSVhsv(63, 77%, 71%)
CMYKcmyk(3.3%, 0%, 76.8%, 29%)
CIE-LABlab(71.10, -18.33, 64.57)
CIE-LCHlch(71.10, 67.12, 105.85°)
OKLaboklab(74.46% -0.0574 0.1412)
OKLCHoklch(74.46% 0.152 112.1)
XYZxyz(34.6222, 42.3297, 8.5367)
Luminance0.4233 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFB52A #302AB5
analogous
#B5752A #AFB52A #69B52A
triadic
#AFB52A #2AAFB5 #B52AAF
tetradic
#AFB52A #2AB575 #302AB5 #B52A69
square
#AFB52A #2AB575 #302AB5 #B52A69
split-complementary
#AFB52A #2A69B5 #752AB5
monochromatic
#4F5213 #7F831E #AFB52A #CED448 #DCE079

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##AFB52A#FFFFFF#000000##000000
##AFB52A1.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)
#C3AC02
Deuteranopia (green-blind)
#C4B036
Tritanopia (blue-blind)
#BBAA9B
Achromatopsia (no color)
#AEAEAE

Design tokens & code

CSS
--color: #afb52a;
/* rgb */ color: rgb(175, 181, 42);
/* oklch */ color: oklch(74.5% 0.152 112.1);
Tailwind
colors: {
  custom: {
    50: '#cbca6f',
    500: '#afb52a',
    950: '#000000',
  },
}
SCSS
$custom: #afb52a;
$custom-light: #cbca6f;
$custom-dark: #000000;
JSON
{
  "hex": "#afb52a",
  "rgb": {
    "r": 175,
    "g": 181,
    "b": 42
  },
  "hsl": {
    "h": 62.59,
    "s": 62.332,
    "l": 43.725
  },
  "oklch": {
    "l": 0.74456,
    "c": 0.15242,
    "h": 112.1
  },
  "luminance": 0.42329
}

Semantic roles & 50–950 ramp

primary
#AFB52A
secondary
#7673C8
accent
#42E549
background
#FCFCF7
surface
#F9F8ED
border
#D2D1C8
text
#141308
muted
#82827B

Preview Lab

Preview with #AFB52A

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

Preview Lab → · Contrast checker → · Palette generator →

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