#ABA731#ABA731

#ABA731 is a light, vivid yellow. Relative luminance 0.365; OKLCH L 71.0% C 0.135 H 107.4°. Best body text is #000000 at 8.30:1 contrast (WCAG AA passes).

Color values

HEX#ABA731
RGBrgb(171, 167, 49)
HSLhsl(58, 55%, 43%)
HSVhsv(58, 71%, 67%)
CMYKcmyk(0%, 2.3%, 71.3%, 32.9%)
CIE-LABlab(66.91, -12.59, 58.11)
CIE-LCHlch(66.91, 59.46, 102.22°)
OKLaboklab(71.05% -0.0405 0.1289)
OKLCHoklch(71.05% 0.135 107.4)
XYZxyz(31.1689, 36.5182, 8.3120)
Luminance0.3652 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#ABA731 #3135AB
analogous
#AB6A31 #ABA731 #72AB31
triadic
#ABA731 #31ABA7 #A731AB
tetradic
#ABA731 #31AB6A #3135AB #AB3172
square
#ABA731 #31AB6A #3135AB #AB3172
split-complementary
#ABA731 #3172AB #6A31AB
monochromatic
#4C4A16 #7B7923 #ABA731 #CCC84D #DAD77D

Accessibility & contrast

On white

2.53
#ABA731 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.30
#ABA731 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #ABA731
8.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##ABA731#FFFFFF#000000##000000
##ABA7311.002.538.308.30
#FFFFFF2.531.0021.0021.00
#0000008.3021.001.001.00
##0000008.3021.001.001.00

Color blindness preview

Protanopia (red-blind)
#B5A01D
Deuteranopia (green-blind)
#B7A539
Tritanopia (blue-blind)
#B79C90
Achromatopsia (no color)
#A3A3A3

Design tokens & code

CSS
--color: #aba731;
/* rgb */ color: rgb(171, 167, 49);
/* oklch */ color: oklch(71.0% 0.135 107.4);
Tailwind
colors: {
  custom: {
    50: '#c7c071',
    500: '#aba731',
    950: '#000000',
  },
}
SCSS
$custom: #aba731;
$custom-light: #c7c071;
$custom-dark: #000000;
JSON
{
  "hex": "#aba731",
  "rgb": {
    "r": 171,
    "g": 167,
    "b": 49
  },
  "hsl": {
    "h": 58.033,
    "s": 55.455,
    "l": 43.137
  },
  "oklch": {
    "l": 0.71045,
    "c": 0.13514,
    "h": 107.4
  },
  "luminance": 0.36517
}

Semantic roles & 50–950 ramp

primary
#ABA731
secondary
#7578C2
accent
#4EDF49
background
#FCFBF7
surface
#F9F7ED
border
#D2D0C8
text
#131208
muted
#82817B

Preview Lab

Preview with #ABA731

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

Preview Lab → · Contrast checker → · Palette generator →

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