#ABAC38#ABAC38

#ABAC38 is a light, vivid yellow. Relative luminance 0.384; OKLCH L 72.2% C 0.136 H 109.8°. Best body text is #000000 at 8.69:1 contrast (WCAG AA passes).

Color values

HEX#ABAC38
RGBrgb(171, 172, 56)
HSLhsl(61, 51%, 45%)
HSVhsv(61, 67%, 67%)
CMYKcmyk(0.6%, 0%, 67.4%, 32.5%)
CIE-LABlab(68.35, -14.80, 56.84)
CIE-LCHlch(68.35, 58.74, 104.59°)
OKLaboklab(72.21% -0.046 0.1275)
OKLCHoklch(72.21% 0.136 109.8)
XYZxyz(32.2620, 38.4494, 9.4626)
Luminance0.3845 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#ABAC38 #3938AC
analogous
#AC7338 #ABAC38 #71AC38
triadic
#ABAC38 #38ABAC #AC38AB
tetradic
#ABAC38 #38AC73 #3938AC #AC3871
square
#ABAC38 #38AC73 #3938AC #AC3871
split-complementary
#ABAC38 #3871AC #7338AC
monochromatic
#4F501A #7D7E29 #ABAC38 #C8C958 #D7D887

Accessibility & contrast

On white

2.42
#ABAC38 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.69
#ABAC38 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #ABAC38
8.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##ABAC38#FFFFFF#000000##000000
##ABAC381.002.428.698.69
#FFFFFF2.421.0021.0021.00
#0000008.6921.001.001.00
##0000008.6921.001.001.00

Color blindness preview

Protanopia (red-blind)
#BAA527
Deuteranopia (green-blind)
#BBA840
Tritanopia (blue-blind)
#B7A195
Achromatopsia (no color)
#A7A7A7

Design tokens & code

CSS
--color: #abac38;
/* rgb */ color: rgb(171, 172, 56);
/* oklch */ color: oklch(72.2% 0.136 109.8);
Tailwind
colors: {
  custom: {
    50: '#c7c475',
    500: '#abac38',
    950: '#000000',
  },
}
SCSS
$custom: #abac38;
$custom-light: #c7c475;
$custom-dark: #000000;
JSON
{
  "hex": "#abac38",
  "rgb": {
    "r": 171,
    "g": 172,
    "b": 56
  },
  "hsl": {
    "h": 60.517,
    "s": 50.877,
    "l": 44.706
  },
  "oklch": {
    "l": 0.72207,
    "c": 0.13551,
    "h": 109.8
  },
  "luminance": 0.38448
}

Semantic roles & 50–950 ramp

primary
#ABAC38
secondary
#7F7EC2
accent
#4DDA4F
background
#FCFCF7
surface
#F9F8ED
border
#D2D1C8
text
#131209
muted
#82817B

Preview Lab

Preview with #ABAC38

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

Preview Lab → · Contrast checker → · Palette generator →

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