#AFB52F#AFB52F

#AFB52F 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#AFB52F
RGBrgb(175, 181, 47)
HSLhsl(63, 59%, 45%)
HSVhsv(63, 74%, 71%)
CMYKcmyk(3.3%, 0%, 74%, 29%)
CIE-LABlab(71.12, -18.12, 62.97)
CIE-LCHlch(71.12, 65.53, 106.05°)
OKLaboklab(74.49% -0.0564 0.1387)
OKLCHoklch(74.49% 0.15 112.1)
XYZxyz(34.7173, 42.3678, 9.0378)
Luminance0.4237 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFB52F #352FB5
analogous
#B5782F #AFB52F #6CB52F
triadic
#AFB52F #2FAFB5 #B52FAF
tetradic
#AFB52F #2FB578 #352FB5 #B52F6C
square
#AFB52F #2FB578 #352FB5 #B52F6C
split-complementary
#AFB52F #2F6CB5 #782FB5
monochromatic
#515416 #808422 #AFB52F #CCD150 #DADE80

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##AFB52F#FFFFFF#000000##000000
##AFB52F1.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)
#C3AD12
Deuteranopia (green-blind)
#C3B03A
Tritanopia (blue-blind)
#BBAA9C
Achromatopsia (no color)
#AEAEAE

Design tokens & code

CSS
--color: #afb52f;
/* rgb */ color: rgb(175, 181, 47);
/* oklch */ color: oklch(74.5% 0.150 112.1);
Tailwind
colors: {
  custom: {
    50: '#cacb72',
    500: '#afb52f',
    950: '#000000',
  },
}
SCSS
$custom: #afb52f;
$custom-light: #cacb72;
$custom-dark: #000000;
JSON
{
  "hex": "#afb52f",
  "rgb": {
    "r": 175,
    "g": 181,
    "b": 47
  },
  "hsl": {
    "h": 62.687,
    "s": 58.772,
    "l": 44.706
  },
  "oklch": {
    "l": 0.74485,
    "c": 0.14972,
    "h": 112.1
  },
  "luminance": 0.42367
}

Semantic roles & 50–950 ramp

primary
#AFB52F
secondary
#7C79C7
accent
#46E24D
background
#FCFCF7
surface
#F9F8ED
border
#D2D1C8
text
#141308
muted
#82827B

Preview Lab

Preview with #AFB52F

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

Preview Lab → · Contrast checker → · Palette generator →

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