#A6A828#A6A828

#A6A828 is a light, vivid yellow. Relative luminance 0.363; OKLCH L 70.8% C 0.142 H 110.5°. Best body text is #000000 at 8.25:1 contrast (WCAG AA passes).

Color values

HEX#A6A828
RGBrgb(166, 168, 40)
HSLhsl(61, 62%, 41%)
HSVhsv(61, 76%, 66%)
CMYKcmyk(1.2%, 0%, 76.2%, 34.1%)
CIE-LABlab(66.72, -15.71, 60.93)
CIE-LCHlch(66.72, 62.92, 104.45°)
OKLaboklab(70.77% -0.0498 0.1334)
OKLCHoklch(70.77% 0.142 110.5)
XYZxyz(30.1126, 36.2663, 7.4209)
Luminance0.3626 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A6A828 #2A28A8
analogous
#A86A28 #A6A828 #66A828
triadic
#A6A828 #28A6A8 #A828A6
tetradic
#A6A828 #28A86A #2A28A8 #A82866
square
#A6A828 #28A86A #2A28A8 #A82866
split-complementary
#A6A828 #2866A8 #6A28A8
monochromatic
#444510 #75771C #A6A828 #CED13D #DBDC6E

Accessibility & contrast

On white

2.54
#A6A828 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.25
#A6A828 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #A6A828
8.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A6A828#FFFFFF#000000##000000
##A6A8281.002.548.258.25
#FFFFFF2.541.0021.0021.00
#0000008.2521.001.001.00
##0000008.2521.001.001.00

Color blindness preview

Protanopia (red-blind)
#B6A007
Deuteranopia (green-blind)
#B7A433
Tritanopia (blue-blind)
#B29D90
Achromatopsia (no color)
#A2A2A2

Design tokens & code

CSS
--color: #a6a828;
/* rgb */ color: rgb(166, 168, 40);
/* oklch */ color: oklch(70.8% 0.142 110.5);
Tailwind
colors: {
  custom: {
    50: '#c4c16d',
    500: '#a6a828',
    950: '#000000',
  },
}
SCSS
$custom: #a6a828;
$custom-light: #c4c16d;
$custom-dark: #000000;
JSON
{
  "hex": "#a6a828",
  "rgb": {
    "r": 166,
    "g": 168,
    "b": 40
  },
  "hsl": {
    "h": 60.938,
    "s": 61.538,
    "l": 40.784
  },
  "oklch": {
    "l": 0.70774,
    "c": 0.14242,
    "h": 110.5
  },
  "luminance": 0.36265
}

Semantic roles & 50–950 ramp

primary
#A6A828
secondary
#6A69C3
accent
#43E546
background
#FCFBF6
surface
#F8F7EC
border
#D1D0C7
text
#131208
muted
#82817B

Preview Lab

Preview with #A6A828

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

Preview Lab → · Contrast checker → · Palette generator →

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