#A6A42B#A6A42B

#A6A42B is a light, vivid yellow. Relative luminance 0.348; OKLCH L 69.9% C 0.137 H 108.5°. Best body text is #000000 at 7.97:1 contrast (WCAG AA passes).

Color values

HEX#A6A42B
RGBrgb(166, 164, 43)
HSLhsl(59, 59%, 41%)
HSVhsv(59, 74%, 65%)
CMYKcmyk(0%, 1.2%, 74.1%, 34.9%)
CIE-LABlab(65.62, -13.51, 58.89)
CIE-LCHlch(65.62, 60.42, 102.92°)
OKLaboklab(69.9% -0.0434 0.1297)
OKLCHoklch(69.9% 0.137 108.5)
XYZxyz(29.4385, 34.8333, 7.4578)
Luminance0.3483 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A6A42B #2B2DA6
analogous
#A6662B #A6A42B #6AA62B
triadic
#A6A42B #2BA6A4 #A42BA6
tetradic
#A6A42B #2BA666 #2B2DA6 #A62B6A
square
#A6A42B #2BA666 #2B2DA6 #A62B6A
split-complementary
#A6A42B #2B6AA6 #662BA6
monochromatic
#454412 #75741E #A6A42B #CECB41 #DAD971

Accessibility & contrast

On white

2.64
#A6A42B on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.97
#A6A42B on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #A6A42B
7.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A6A42B#FFFFFF#000000##000000
##A6A42B1.002.647.977.97
#FFFFFF2.641.0021.0021.00
#0000007.9721.001.001.00
##0000007.9721.001.001.00

Color blindness preview

Protanopia (red-blind)
#B29D12
Deuteranopia (green-blind)
#B4A134
Tritanopia (blue-blind)
#B2998D
Achromatopsia (no color)
#9F9F9F

Design tokens & code

CSS
--color: #a6a42b;
/* rgb */ color: rgb(166, 164, 43);
/* oklch */ color: oklch(69.9% 0.137 108.5);
Tailwind
colors: {
  custom: {
    50: '#c4be6e',
    500: '#a6a42b',
    950: '#000000',
  },
}
SCSS
$custom: #a6a42b;
$custom-light: #c4be6e;
$custom-dark: #000000;
JSON
{
  "hex": "#a6a42b",
  "rgb": {
    "r": 166,
    "g": 164,
    "b": 43
  },
  "hsl": {
    "h": 59.024,
    "s": 58.852,
    "l": 40.98
  },
  "oklch": {
    "l": 0.69897,
    "c": 0.13673,
    "h": 108.5
  },
  "luminance": 0.34832
}

Semantic roles & 50–950 ramp

primary
#A6A42B
secondary
#6B6DC1
accent
#48E246
background
#FCFBF6
surface
#F8F6EC
border
#D1D0C7
text
#131208
muted
#82817B

Preview Lab

Preview with #A6A42B

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

Preview Lab → · Contrast checker → · Palette generator →

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