#ABAB30#ABAB30

#ABAB30 is a light, vivid yellow. Relative luminance 0.380; OKLCH L 71.9% C 0.140 H 109.5°. Best body text is #000000 at 8.60:1 contrast (WCAG AA passes).

Color values

HEX#ABAB30
RGBrgb(171, 171, 48)
HSLhsl(60, 56%, 43%)
HSVhsv(60, 72%, 67%)
CMYKcmyk(0%, 0%, 71.9%, 32.9%)
CIE-LABlab(68.02, -14.71, 59.55)
CIE-LCHlch(68.02, 61.34, 103.87°)
OKLaboklab(71.93% -0.0465 0.1318)
OKLCHoklch(71.93% 0.14 109.5)
XYZxyz(31.8921, 37.9981, 8.4501)
Luminance0.3800 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#ABAB30 #3030AB
analogous
#AB6D30 #ABAB30 #6DAB30
triadic
#ABAB30 #30ABAB #AB30AB
tetradic
#ABAB30 #30AB6D #3030AB #AB306D
square
#ABAB30 #30AB6D #3030AB #AB306D
split-complementary
#ABAB30 #306DAB #6D30AB
monochromatic
#4B4B15 #7B7B23 #ABAB30 #CDCD4C #DADA7B

Accessibility & contrast

On white

2.44
#ABAB30 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.60
#ABAB30 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #ABAB30
8.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##ABAB30#FFFFFF#000000##000000
##ABAB301.002.448.608.60
#FFFFFF2.441.0021.0021.00
#0000008.6021.001.001.00
##0000008.6021.001.001.00

Color blindness preview

Protanopia (red-blind)
#B9A419
Deuteranopia (green-blind)
#BAA839
Tritanopia (blue-blind)
#B7A093
Achromatopsia (no color)
#A6A6A6

Design tokens & code

CSS
--color: #abab30;
/* rgb */ color: rgb(171, 171, 48);
/* oklch */ color: oklch(71.9% 0.140 109.5);
Tailwind
colors: {
  custom: {
    50: '#c7c371',
    500: '#abab30',
    950: '#000000',
  },
}
SCSS
$custom: #abab30;
$custom-light: #c7c371;
$custom-dark: #000000;
JSON
{
  "hex": "#abab30",
  "rgb": {
    "r": 171,
    "g": 171,
    "b": 48
  },
  "hsl": {
    "h": 60,
    "s": 56.164,
    "l": 42.941
  },
  "oklch": {
    "l": 0.71925,
    "c": 0.13977,
    "h": 109.5
  },
  "luminance": 0.37997
}

Semantic roles & 50–950 ramp

primary
#ABAB30
secondary
#7474C3
accent
#48DF48
background
#FCFBF7
surface
#F9F7ED
border
#D2D0C8
text
#141208
muted
#82817B

Preview Lab

Preview with #ABAB30

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

Preview Lab → · Contrast checker → · Palette generator →

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