#ABAF34#ABAF34

#ABAF34 is a light, vivid yellow. Relative luminance 0.396; OKLCH L 72.8% C 0.141 H 111.3°. Best body text is #000000 at 8.91:1 contrast (WCAG AA passes).

Color values

HEX#ABAF34
RGBrgb(171, 175, 52)
HSLhsl(62, 54%, 45%)
HSVhsv(62, 70%, 69%)
CMYKcmyk(2.3%, 0%, 70.3%, 31.4%)
CIE-LABlab(69.16, -16.55, 59.19)
CIE-LCHlch(69.16, 61.46, 105.62°)
OKLaboklab(72.85% -0.0513 0.1317)
OKLCHoklch(72.85% 0.141 111.3)
XYZxyz(32.7454, 39.5666, 9.1603)
Luminance0.3957 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#ABAF34 #3834AF
analogous
#AF7634 #ABAF34 #6EAF34
triadic
#ABAF34 #34ABAF #AF34AB
tetradic
#ABAF34 #34AF76 #3834AF #AF346E
square
#ABAF34 #34AF76 #3834AF #AF346E
split-complementary
#ABAF34 #346EAF #7634AF
monochromatic
#4F5118 #7D8026 #ABAF34 #C8CC54 #D7DA83

Accessibility & contrast

On white

2.36
#ABAF34 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.91
#ABAF34 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #ABAF34
8.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##ABAF34#FFFFFF#000000##000000
##ABAF341.002.368.918.91
#FFFFFF2.361.0021.0021.00
#0000008.9121.001.001.00
##0000008.9121.001.001.00

Color blindness preview

Protanopia (red-blind)
#BDA71F
Deuteranopia (green-blind)
#BDAA3D
Tritanopia (blue-blind)
#B7A497
Achromatopsia (no color)
#A9A9A9

Design tokens & code

CSS
--color: #abaf34;
/* rgb */ color: rgb(171, 175, 52);
/* oklch */ color: oklch(72.8% 0.141 111.3);
Tailwind
colors: {
  custom: {
    50: '#c7c674',
    500: '#abaf34',
    950: '#000000',
  },
}
SCSS
$custom: #abaf34;
$custom-light: #c7c674;
$custom-dark: #000000;
JSON
{
  "hex": "#abaf34",
  "rgb": {
    "r": 171,
    "g": 175,
    "b": 52
  },
  "hsl": {
    "h": 61.951,
    "s": 54.185,
    "l": 44.51
  },
  "oklch": {
    "l": 0.72845,
    "c": 0.14138,
    "h": 111.3
  },
  "luminance": 0.39566
}

Semantic roles & 50–950 ramp

primary
#ABAF34
secondary
#7D7BC4
accent
#4ADE4F
background
#FCFCF7
surface
#F9F8ED
border
#D2D1C8
text
#131309
muted
#82827B

Preview Lab

Preview with #ABAF34

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

Preview Lab → · Contrast checker → · Palette generator →

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