#ABAF2F#ABAF2F

#ABAF2F is a light, vivid yellow. Relative luminance 0.395; OKLCH L 72.8% C 0.144 H 111.3°. Best body text is #000000 at 8.90:1 contrast (WCAG AA passes).

Color values

HEX#ABAF2F
RGBrgb(171, 175, 47)
HSLhsl(62, 58%, 44%)
HSVhsv(62, 73%, 69%)
CMYKcmyk(2.3%, 0%, 73.1%, 31.4%)
CIE-LABlab(69.13, -16.80, 60.97)
CIE-LCHlch(69.13, 63.24, 105.41°)
OKLaboklab(72.81% -0.0525 0.1346)
OKLCHoklch(72.81% 0.144 111.3)
XYZxyz(32.6387, 39.5240, 8.5983)
Luminance0.3952 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#ABAF2F #332FAF
analogous
#AF732F #ABAF2F #6BAF2F
triadic
#ABAF2F #2FABAF #AF2FAB
tetradic
#ABAF2F #2FAF73 #332FAF #AF2F6B
square
#ABAF2F #2FAF73 #332FAF #AF2F6B
split-complementary
#ABAF2F #2F6BAF #732FAF
monochromatic
#4D4F15 #7C7F22 #ABAF2F #CBCF4C #D9DC7C

Accessibility & contrast

On white

2.36
#ABAF2F on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.90
#ABAF2F on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #ABAF2F
8.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##ABAF2F#FFFFFF#000000##000000
##ABAF2F1.002.368.908.90
#FFFFFF2.361.0021.0021.00
#0000008.9021.001.001.00
##0000008.9021.001.001.00

Color blindness preview

Protanopia (red-blind)
#BDA715
Deuteranopia (green-blind)
#BEAA39
Tritanopia (blue-blind)
#B7A496
Achromatopsia (no color)
#A9A9A9

Design tokens & code

CSS
--color: #abaf2f;
/* rgb */ color: rgb(171, 175, 47);
/* oklch */ color: oklch(72.8% 0.144 111.3);
Tailwind
colors: {
  custom: {
    50: '#c7c671',
    500: '#abaf2f',
    950: '#000000',
  },
}
SCSS
$custom: #abaf2f;
$custom-light: #c7c671;
$custom-dark: #000000;
JSON
{
  "hex": "#abaf2f",
  "rgb": {
    "r": 171,
    "g": 175,
    "b": 47
  },
  "hsl": {
    "h": 61.875,
    "s": 57.658,
    "l": 43.529
  },
  "oklch": {
    "l": 0.7281,
    "c": 0.14448,
    "h": 111.3
  },
  "luminance": 0.39523
}

Semantic roles & 50–950 ramp

primary
#ABAF2F
secondary
#7875C4
accent
#47E14C
background
#FCFCF7
surface
#F9F8ED
border
#D2D1C8
text
#141308
muted
#82827B

Preview Lab

Preview with #ABAF2F

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

Preview Lab → · Contrast checker → · Palette generator →

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