#A6A840#A6A840

#A6A840 is a light, vivid yellow. Relative luminance 0.365; OKLCH L 71.0% C 0.126 H 110.3°. Best body text is #000000 at 8.30:1 contrast (WCAG AA passes).

Color values

HEX#A6A840
RGBrgb(166, 168, 64)
HSLhsl(61, 45%, 45%)
HSVhsv(61, 62%, 66%)
CMYKcmyk(1.2%, 0%, 61.9%, 34.1%)
CIE-LABlab(66.89, -14.38, 51.85)
CIE-LCHlch(66.89, 53.81, 105.50°)
OKLaboklab(70.96% -0.0437 0.1183)
OKLCHoklch(70.96% 0.126 110.3)
XYZxyz(30.6548, 36.4832, 10.2766)
Luminance0.3648 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A6A840 #4240A8
analogous
#A87640 #A6A840 #72A840
triadic
#A6A840 #40A6A8 #A840A6
tetradic
#A6A840 #40A876 #4240A8 #A84072
square
#A6A840 #40A876 #4240A8 #A84072
split-complementary
#A6A840 #4072A8 #7640A8
monochromatic
#4E4F1E #7A7C2F #A6A840 #C1C362 #D3D48E

Accessibility & contrast

On white

2.53
#A6A840 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.30
#A6A840 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #A6A840
8.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A6A840#FFFFFF#000000##000000
##A6A8401.002.538.308.30
#FFFFFF2.531.0021.0021.00
#0000008.3021.001.001.00
##0000008.3021.001.001.00

Color blindness preview

Protanopia (red-blind)
#B5A133
Deuteranopia (green-blind)
#B6A446
Tritanopia (blue-blind)
#B19E92
Achromatopsia (no color)
#A3A3A3

Design tokens & code

CSS
--color: #a6a840;
/* rgb */ color: rgb(166, 168, 64);
/* oklch */ color: oklch(71.0% 0.126 110.3);
Tailwind
colors: {
  custom: {
    50: '#c3c17a',
    500: '#a6a840',
    950: '#000000',
  },
}
SCSS
$custom: #a6a840;
$custom-light: #c3c17a;
$custom-dark: #000000;
JSON
{
  "hex": "#a6a840",
  "rgb": {
    "r": 166,
    "g": 168,
    "b": 64
  },
  "hsl": {
    "h": 61.154,
    "s": 44.828,
    "l": 45.49
  },
  "oklch": {
    "l": 0.70958,
    "c": 0.12611,
    "h": 110.3
  },
  "luminance": 0.36482
}

Semantic roles & 50–950 ramp

primary
#A6A840
secondary
#8685BF
accent
#53D556
background
#FCFBF7
surface
#F8F7EE
border
#D1D0C9
text
#131209
muted
#82817B

Preview Lab

Preview with #A6A840

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

Preview Lab → · Contrast checker → · Palette generator →

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