#ABA228#ABA228

#ABA228 is a light, vivid yellow. Relative luminance 0.347; OKLCH L 69.9% C 0.136 H 105.0°. Best body text is #000000 at 7.93:1 contrast (WCAG AA passes).

Color values

HEX#ABA228
RGBrgb(171, 162, 40)
HSLhsl(56, 62%, 41%)
HSVhsv(56, 77%, 67%)
CMYKcmyk(0%, 5.3%, 76.6%, 32.9%)
CIE-LABlab(65.48, -10.39, 59.94)
CIE-LCHlch(65.48, 60.83, 99.83°)
OKLaboklab(69.88% -0.0352 0.1311)
OKLCHoklch(69.88% 0.136 105)
XYZxyz(30.0992, 34.6530, 7.1103)
Luminance0.3465 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#ABA228 #2831AB
analogous
#AB6128 #ABA228 #73AB28
triadic
#ABA228 #28ABA2 #A228AB
tetradic
#ABA228 #28AB61 #2831AB #AB2873
square
#ABA228 #28AB61 #2831AB #AB2873
split-complementary
#ABA228 #2873AB #6128AB
monochromatic
#484411 #79731C #ABA228 #D2C83E #DED670

Accessibility & contrast

On white

2.65
#ABA228 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.93
#ABA228 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #ABA228
7.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##ABA228#FFFFFF#000000##000000
##ABA2281.002.657.937.93
#FFFFFF2.651.0021.0021.00
#0000007.9321.001.001.00
##0000007.9321.001.001.00

Color blindness preview

Protanopia (red-blind)
#B19C0B
Deuteranopia (green-blind)
#B4A131
Tritanopia (blue-blind)
#B8978B
Achromatopsia (no color)
#9F9F9F

Design tokens & code

CSS
--color: #aba228;
/* rgb */ color: rgb(171, 162, 40);
/* oklch */ color: oklch(69.9% 0.136 105.0);
Tailwind
colors: {
  custom: {
    50: '#c8bd6c',
    500: '#aba228',
    950: '#000000',
  },
}
SCSS
$custom: #aba228;
$custom-light: #c8bd6c;
$custom-dark: #000000;
JSON
{
  "hex": "#aba228",
  "rgb": {
    "r": 171,
    "g": 162,
    "b": 40
  },
  "hsl": {
    "h": 55.878,
    "s": 62.085,
    "l": 41.373
  },
  "oklch": {
    "l": 0.69884,
    "c": 0.13576,
    "h": 105
  },
  "luminance": 0.34652
}

Semantic roles & 50–950 ramp

primary
#ABA228
secondary
#6A71C4
accent
#4EE543
background
#FCFBF6
surface
#F9F6EC
border
#D2D0C7
text
#141207
muted
#82817A

Preview Lab

Preview with #ABA228

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

Preview Lab → · Contrast checker → · Palette generator →

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