#A6BA2A#A6BA2A

#A6BA2A is a light, vivid yellow. Relative luminance 0.434; OKLCH L 74.9% C 0.161 H 117.6°. Best body text is #000000 at 9.68:1 contrast (WCAG AA passes).

Color values

HEX#A6BA2A
RGBrgb(166, 186, 42)
HSLhsl(68, 63%, 45%)
HSVhsv(68, 77%, 73%)
CMYKcmyk(10.8%, 0%, 77.4%, 27.1%)
CIE-LABlab(71.82, -24.64, 64.98)
CIE-LCHlch(71.82, 69.49, 110.76°)
OKLaboklab(74.87% -0.0743 0.1424)
OKLCHoklch(74.87% 0.161 117.6)
XYZxyz(33.7035, 43.3923, 8.7901)
Luminance0.4339 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A6BA2A #3E2ABA
analogous
#BA862A #A6BA2A #5EBA2A
triadic
#A6BA2A #2AA6BA #BA2AA6
tetradic
#A6BA2A #2ABA86 #3E2ABA #BA2A5E
square
#A6BA2A #2ABA86 #3E2ABA #BA2A5E
split-complementary
#A6BA2A #2A5EBA #862ABA
monochromatic
#4D5613 #79881F #A6BA2A #C3D64B #D4E27D

Accessibility & contrast

On white

2.17
#A6BA2A on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.68
#A6BA2A on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #A6BA2A
9.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A6BA2A#FFFFFF#000000##000000
##A6BA2A1.002.179.689.68
#FFFFFF2.171.0021.0021.00
#0000009.6821.001.001.00
##0000009.6821.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #a6ba2a;
/* rgb */ color: rgb(166, 186, 42);
/* oklch */ color: oklch(74.9% 0.161 117.6);
Tailwind
colors: {
  custom: {
    50: '#c4ce70',
    500: '#a6ba2a',
    950: '#000000',
  },
}
SCSS
$custom: #a6ba2a;
$custom-light: #c4ce70;
$custom-dark: #000000;
JSON
{
  "hex": "#a6ba2a",
  "rgb": {
    "r": 166,
    "g": 186,
    "b": 42
  },
  "hsl": {
    "h": 68.333,
    "s": 63.158,
    "l": 44.706
  },
  "oklch": {
    "l": 0.74866,
    "c": 0.16062,
    "h": 117.6
  },
  "luminance": 0.43392
}

Semantic roles & 50–950 ramp

primary
#A6BA2A
secondary
#8276CA
accent
#42E658
background
#FCFCF7
surface
#F8F9ED
border
#D1D2C8
text
#131308
muted
#82827B

Preview Lab

Preview with #A6BA2A

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

Preview Lab → · Contrast checker → · Palette generator →

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