#AFB52E#AFB52E

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

Color values

HEX#AFB52E
RGBrgb(175, 181, 46)
HSLhsl(63, 59%, 45%)
HSVhsv(63, 75%, 71%)
CMYKcmyk(3.3%, 0%, 74.6%, 29%)
CIE-LABlab(71.12, -18.16, 63.30)
CIE-LCHlch(71.12, 65.85, 106.01°)
OKLaboklab(74.48% -0.0566 0.1392)
OKLCHoklch(74.48% 0.15 112.1)
XYZxyz(34.6974, 42.3598, 8.9327)
Luminance0.4236 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFB52E #342EB5
analogous
#B5782E #AFB52E #6BB52E
triadic
#AFB52E #2EAFB5 #B52EAF
tetradic
#AFB52E #2EB578 #342EB5 #B52E6B
square
#AFB52E #2EB578 #342EB5 #B52E6B
split-complementary
#AFB52E #2E6BB5 #782EB5
monochromatic
#515315 #808422 #AFB52E #CCD24E #DADE7F

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##AFB52E#FFFFFF#000000##000000
##AFB52E1.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)
#C3AC0F
Deuteranopia (green-blind)
#C4B039
Tritanopia (blue-blind)
#BBAA9B
Achromatopsia (no color)
#AEAEAE

Design tokens & code

CSS
--color: #afb52e;
/* rgb */ color: rgb(175, 181, 46);
/* oklch */ color: oklch(74.5% 0.150 112.1);
Tailwind
colors: {
  custom: {
    50: '#cacb71',
    500: '#afb52e',
    950: '#000000',
  },
}
SCSS
$custom: #afb52e;
$custom-light: #cacb71;
$custom-dark: #000000;
JSON
{
  "hex": "#afb52e",
  "rgb": {
    "r": 175,
    "g": 181,
    "b": 46
  },
  "hsl": {
    "h": 62.667,
    "s": 59.471,
    "l": 44.51
  },
  "oklch": {
    "l": 0.74479,
    "c": 0.15028,
    "h": 112.1
  },
  "luminance": 0.42359
}

Semantic roles & 50–950 ramp

primary
#AFB52E
secondary
#7B78C7
accent
#45E34C
background
#FCFCF7
surface
#F9F8ED
border
#D2D1C8
text
#141308
muted
#82827B

Preview Lab

Preview with #AFB52E

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

Preview Lab → · Contrast checker → · Palette generator →

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