#A8BA2A#A8BA2A

#A8BA2A is a light, vivid yellow. Relative luminance 0.436; OKLCH L 75.0% C 0.160 H 116.8°. Best body text is #000000 at 9.72:1 contrast (WCAG AA passes).

Color values

HEX#A8BA2A
RGBrgb(168, 186, 42)
HSLhsl(68, 63%, 45%)
HSVhsv(68, 77%, 73%)
CMYKcmyk(9.7%, 0%, 77.4%, 27.1%)
CIE-LABlab(71.97, -23.79, 65.16)
CIE-LCHlch(71.97, 69.37, 110.06°)
OKLaboklab(75.02% -0.0721 0.1427)
OKLCHoklch(75.02% 0.16 116.8)
XYZxyz(34.1262, 43.6103, 8.8099)
Luminance0.4361 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A8BA2A #3C2ABA
analogous
#BA842A #A8BA2A #60BA2A
triadic
#A8BA2A #2AA8BA #BA2AA8
tetradic
#A8BA2A #2ABA84 #3C2ABA #BA2A60
square
#A8BA2A #2ABA84 #3C2ABA #BA2A60
split-complementary
#A8BA2A #2A60BA #842ABA
monochromatic
#4E5613 #7B881F #A8BA2A #C5D64B #D5E27D

Accessibility & contrast

On white

2.16
#A8BA2A on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.72
#A8BA2A on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #A8BA2A
9.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A8BA2A#FFFFFF#000000##000000
##A8BA2A1.002.169.729.72
#FFFFFF2.161.0021.0021.00
#0000009.7221.001.001.00
##0000009.7221.001.001.00

Color blindness preview

Protanopia (red-blind)
#C7B000
Deuteranopia (green-blind)
#C5B138
Tritanopia (blue-blind)
#B3AF9F
Achromatopsia (no color)
#B0B0B0

Design tokens & code

CSS
--color: #a8ba2a;
/* rgb */ color: rgb(168, 186, 42);
/* oklch */ color: oklch(75.0% 0.160 116.8);
Tailwind
colors: {
  custom: {
    50: '#c6ce70',
    500: '#a8ba2a',
    950: '#000000',
  },
}
SCSS
$custom: #a8ba2a;
$custom-light: #c6ce70;
$custom-dark: #000000;
JSON
{
  "hex": "#a8ba2a",
  "rgb": {
    "r": 168,
    "g": 186,
    "b": 42
  },
  "hsl": {
    "h": 67.5,
    "s": 63.158,
    "l": 44.706
  },
  "oklch": {
    "l": 0.75021,
    "c": 0.15991,
    "h": 116.8
  },
  "luminance": 0.4361
}

Semantic roles & 50–950 ramp

primary
#A8BA2A
secondary
#8076CA
accent
#42E656
background
#FCFCF7
surface
#F9F9ED
border
#D2D2C8
text
#131308
muted
#82827B

Preview Lab

Preview with #A8BA2A

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

Preview Lab → · Contrast checker → · Palette generator →

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