#ABAF27#ABAF27

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

Color values

HEX#ABAF27
RGBrgb(171, 175, 39)
HSLhsl(62, 64%, 42%)
HSVhsv(62, 78%, 69%)
CMYKcmyk(2.3%, 0%, 77.7%, 31.4%)
CIE-LABlab(69.09, -17.15, 63.55)
CIE-LCHlch(69.09, 65.82, 105.10°)
OKLaboklab(72.76% -0.0541 0.1386)
OKLCHoklch(72.76% 0.149 111.3)
XYZxyz(32.4919, 39.4652, 7.8250)
Luminance0.3946 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#ABAF27 #2B27AF
analogous
#AF6F27 #ABAF27 #67AF27
triadic
#ABAF27 #27ABAF #AF27AB
tetradic
#ABAF27 #27AF6F #2B27AF #AF2767
square
#ABAF27 #27AF6F #2B27AF #AF2767
split-complementary
#ABAF27 #2767AF #6F27AF
monochromatic
#494B11 #7A7D1C #ABAF27 #D0D43F #DCDF71

Accessibility & contrast

On white

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

On black

8.89
#ABAF27 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #ABAF27
8.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##ABAF27#FFFFFF#000000##000000
##ABAF271.002.368.898.89
#FFFFFF2.361.0021.0021.00
#0000008.8921.001.001.00
##0000008.8921.001.001.00

Color blindness preview

Protanopia (red-blind)
#BDA700
Deuteranopia (green-blind)
#BEAA33
Tritanopia (blue-blind)
#B7A496
Achromatopsia (no color)
#A9A9A9

Design tokens & code

CSS
--color: #abaf27;
/* rgb */ color: rgb(171, 175, 39);
/* oklch */ color: oklch(72.8% 0.149 111.3);
Tailwind
colors: {
  custom: {
    50: '#c8c66d',
    500: '#abaf27',
    950: '#000000',
  },
}
SCSS
$custom: #abaf27;
$custom-light: #c8c66d;
$custom-dark: #000000;
JSON
{
  "hex": "#abaf27",
  "rgb": {
    "r": 171,
    "g": 175,
    "b": 39
  },
  "hsl": {
    "h": 61.765,
    "s": 63.551,
    "l": 41.961
  },
  "oklch": {
    "l": 0.72763,
    "c": 0.14883,
    "h": 111.3
  },
  "luminance": 0.39464
}

Semantic roles & 50–950 ramp

primary
#ABAF27
secondary
#6E6BC6
accent
#41E746
background
#FCFCF6
surface
#F9F8EC
border
#D2D1C7
text
#141308
muted
#82827A

Preview Lab

Preview with #ABAF27

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

Preview Lab → · Contrast checker → · Palette generator →

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