#A8B42A#A8B42A

#A8B42A is a light, vivid yellow. Relative luminance 0.411; OKLCH L 73.7% C 0.153 H 114.6°. Best body text is #000000 at 9.23:1 contrast (WCAG AA passes).

Color values

HEX#A8B42A
RGBrgb(168, 180, 42)
HSLhsl(65, 62%, 44%)
HSVhsv(65, 77%, 71%)
CMYKcmyk(6.7%, 0%, 76.7%, 29.4%)
CIE-LABlab(70.27, -20.83, 63.61)
CIE-LCHlch(70.27, 66.93, 108.13°)
OKLaboklab(73.66% -0.064 0.1394)
OKLCHoklch(73.66% 0.153 114.6)
XYZxyz(32.8886, 41.1351, 8.3974)
Luminance0.4113 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A8B42A #362AB4
analogous
#B47B2A #A8B42A #63B42A
triadic
#A8B42A #2AA8B4 #B42AA8
tetradic
#A8B42A #2AB47B #362AB4 #B42A63
square
#A8B42A #2AB47B #362AB4 #B42A63
split-complementary
#A8B42A #2A63B4 #7B2AB4
monochromatic
#4B5113 #7A821E #A8B42A #C8D447 #D7E079

Accessibility & contrast

On white

2.28
#A8B42A on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.23
#A8B42A on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #A8B42A
9.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A8B42A#FFFFFF#000000##000000
##A8B42A1.002.289.239.23
#FFFFFF2.281.0021.0021.00
#0000009.2321.001.001.00
##0000009.2321.001.001.00

Color blindness preview

Protanopia (red-blind)
#C1AB03
Deuteranopia (green-blind)
#C1AD36
Tritanopia (blue-blind)
#B3A99A
Achromatopsia (no color)
#ACACAC

Design tokens & code

CSS
--color: #a8b42a;
/* rgb */ color: rgb(168, 180, 42);
/* oklch */ color: oklch(73.7% 0.153 114.6);
Tailwind
colors: {
  custom: {
    50: '#c5ca6f',
    500: '#a8b42a',
    950: '#000000',
  },
}
SCSS
$custom: #a8b42a;
$custom-light: #c5ca6f;
$custom-dark: #000000;
JSON
{
  "hex": "#a8b42a",
  "rgb": {
    "r": 168,
    "g": 180,
    "b": 42
  },
  "hsl": {
    "h": 65.217,
    "s": 62.162,
    "l": 43.529
  },
  "oklch": {
    "l": 0.73658,
    "c": 0.15338,
    "h": 114.6
  },
  "luminance": 0.41135
}

Semantic roles & 50–950 ramp

primary
#A8B42A
secondary
#7A72C8
accent
#43E551
background
#FCFCF7
surface
#F8F8ED
border
#D1D1C8
text
#131308
muted
#82827B

Preview Lab

Preview with #A8B42A

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

Preview Lab → · Contrast checker → · Palette generator →

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