#AAB271#AAB271

#AAB271 is a light, moderate yellow. Relative luminance 0.416; OKLCH L 74.2% C 0.087 H 114.3°. Best body text is #000000 at 9.32:1 contrast (WCAG AA passes).

Color values

HEX#AAB271
RGBrgb(170, 178, 113)
HSLhsl(67, 30%, 57%)
HSVhsv(67, 37%, 70%)
CMYKcmyk(4.5%, 0%, 36.5%, 30.2%)
CIE-LABlab(70.58, -13.18, 32.32)
CIE-LCHlch(70.58, 34.90, 112.19°)
OKLaboklab(74.17% -0.0358 0.0795)
OKLCHoklch(74.17% 0.087 114.3)
XYZxyz(35.4788, 41.5795, 21.7762)
Luminance0.4158 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AAB271 #7971B2
analogous
#B29A71 #AAB271 #8AB271
triadic
#AAB271 #71AAB2 #B271AA
tetradic
#AAB271 #71B29A #7971B2 #B2718A
square
#AAB271 #71B29A #7971B2 #B2718A
split-complementary
#AAB271 #718AB2 #9A71B2
monochromatic
#676D3B #8D9551 #AAB271 #C2C899 #DADDC0

Accessibility & contrast

On white

2.25
#AAB271 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.32
#AAB271 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AAB271
9.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AAB271#FFFFFF#000000##000000
##AAB2711.002.259.329.32
#FFFFFF2.251.0021.0021.00
#0000009.3221.001.001.00
##0000009.3221.001.001.00

Color blindness preview

Protanopia (red-blind)
#BBAC6C
Deuteranopia (green-blind)
#BAAD74
Tritanopia (blue-blind)
#B1ABA2
Achromatopsia (no color)
#ADADAD

Design tokens & code

CSS
--color: #aab271;
/* rgb */ color: rgb(170, 178, 113);
/* oklch */ color: oklch(74.2% 0.087 114.3);
Tailwind
colors: {
  custom: {
    50: '#c4c99a',
    500: '#aab271',
    950: '#000000',
  },
}
SCSS
$custom: #aab271;
$custom-light: #c4c99a;
$custom-dark: #000000;
JSON
{
  "hex": "#aab271",
  "rgb": {
    "r": 170,
    "g": 178,
    "b": 113
  },
  "hsl": {
    "h": 67.385,
    "s": 29.68,
    "l": 57.059
  },
  "oklch": {
    "l": 0.74174,
    "c": 0.08721,
    "h": 114.3
  },
  "luminance": 0.41579
}

Semantic roles & 50–950 ramp

primary
#AAB271
secondary
#B5B2CD
accent
#62C66E
background
#FCFCF9
surface
#F8F8F2
border
#D1D1CC
text
#13130E
muted
#82827E

Preview Lab

Preview with #AAB271

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

Preview Lab → · Contrast checker → · Palette generator →

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