#ABAB71#ABAB71

#ABAB71 is a light, moderate yellow. Relative luminance 0.390; OKLCH L 72.7% C 0.078 H 108.2°. Best body text is #000000 at 8.80:1 contrast (WCAG AA passes).

Color values

HEX#ABAB71
RGBrgb(171, 171, 113)
HSLhsl(60, 26%, 56%)
HSVhsv(60, 34%, 67%)
CMYKcmyk(0%, 0%, 33.9%, 32.9%)
CIE-LABlab(68.73, -9.12, 29.93)
CIE-LCHlch(68.73, 31.29, 106.95°)
OKLaboklab(72.73% -0.0243 0.074)
OKLCHoklch(72.73% 0.078 108.2)
XYZxyz(34.3384, 38.9766, 21.3339)
Luminance0.3898 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#ABAB71 #7171AB
analogous
#AB8E71 #ABAB71 #8EAB71
triadic
#ABAB71 #71ABAB #AB71AB
tetradic
#ABAB71 #71AB8E #7171AB #AB718E
square
#ABAB71 #71AB8E #7171AB #AB718E
split-complementary
#ABAB71 #718EAB #8E71AB
monochromatic
#66663C #8C8C53 #ABAB71 #C2C297 #D8D8BE

Accessibility & contrast

On white

2.39
#ABAB71 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.80
#ABAB71 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #ABAB71
8.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##ABAB71#FFFFFF#000000##000000
##ABAB711.002.398.808.80
#FFFFFF2.391.0021.0021.00
#0000008.8021.001.001.00
##0000008.8021.001.001.00

Color blindness preview

Protanopia (red-blind)
#B4A66D
Deuteranopia (green-blind)
#B5A973
Tritanopia (blue-blind)
#B3A49C
Achromatopsia (no color)
#A8A8A8

Design tokens & code

CSS
--color: #abab71;
/* rgb */ color: rgb(171, 171, 113);
/* oklch */ color: oklch(72.7% 0.078 108.2);
Tailwind
colors: {
  custom: {
    50: '#c5c39a',
    500: '#abab71',
    950: '#000000',
  },
}
SCSS
$custom: #abab71;
$custom-light: #c5c39a;
$custom-dark: #000000;
JSON
{
  "hex": "#abab71",
  "rgb": {
    "r": 171,
    "g": 171,
    "b": 113
  },
  "hsl": {
    "h": 60,
    "s": 25.664,
    "l": 55.686
  },
  "oklch": {
    "l": 0.72726,
    "c": 0.07786,
    "h": 108.2
  },
  "luminance": 0.38976
}

Semantic roles & 50–950 ramp

primary
#ABAB71
secondary
#B0B0C8
accent
#66C266
background
#FCFCF9
surface
#F8F8F2
border
#D1D1CC
text
#13120E
muted
#82817E

Preview Lab

Preview with #ABAB71

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

Preview Lab → · Contrast checker → · Palette generator →

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