#A6A242#A6A242

#A6A242 is a light, moderate yellow. Relative luminance 0.343; OKLCH L 69.6% C 0.118 H 106.9°. Best body text is #000000 at 7.87:1 contrast (WCAG AA passes).

Color values

HEX#A6A242
RGBrgb(166, 162, 66)
HSLhsl(58, 43%, 45%)
HSVhsv(58, 60%, 65%)
CMYKcmyk(0%, 2.4%, 60.2%, 34.9%)
CIE-LABlab(65.23, -11.11, 49.16)
CIE-LCHlch(65.23, 50.40, 102.74°)
OKLaboklab(69.65% -0.0342 0.1129)
OKLCHoklch(69.65% 0.118 106.9)
XYZxyz(29.6305, 34.3419, 10.2210)
Luminance0.3434 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A6A242 #4246A6
analogous
#A67042 #A6A242 #78A642
triadic
#A6A242 #42A6A2 #A242A6
tetradic
#A6A242 #42A670 #4246A6 #A64278
square
#A6A242 #42A670 #4246A6 #A64278
split-complementary
#A6A242 #4278A6 #7042A6
monochromatic
#4E4D1F #7A7731 #A6A242 #C1BE64 #D3D090

Accessibility & contrast

On white

2.67
#A6A242 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.87
#A6A242 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #A6A242
7.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A6A242#FFFFFF#000000##000000
##A6A2421.002.677.877.87
#FFFFFF2.671.0021.0021.00
#0000007.8721.001.001.00
##0000007.8721.001.001.00

Color blindness preview

Protanopia (red-blind)
#AF9C37
Deuteranopia (green-blind)
#B1A047
Tritanopia (blue-blind)
#B1988D
Achromatopsia (no color)
#9E9E9E

Design tokens & code

CSS
--color: #a6a242;
/* rgb */ color: rgb(166, 162, 66);
/* oklch */ color: oklch(69.6% 0.118 106.9);
Tailwind
colors: {
  custom: {
    50: '#c3bd7a',
    500: '#a6a242',
    950: '#000000',
  },
}
SCSS
$custom: #a6a242;
$custom-light: #c3bd7a;
$custom-dark: #000000;
JSON
{
  "hex": "#a6a242",
  "rgb": {
    "r": 166,
    "g": 162,
    "b": 66
  },
  "hsl": {
    "h": 57.6,
    "s": 43.103,
    "l": 45.49
  },
  "oklch": {
    "l": 0.69645,
    "c": 0.11795,
    "h": 106.9
  },
  "luminance": 0.34341
}

Semantic roles & 50–950 ramp

primary
#A6A242
secondary
#8688BE
accent
#5AD355
background
#FCFBF7
surface
#F8F6EE
border
#D1D0C9
text
#131209
muted
#82817B

Preview Lab

Preview with #A6A242

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

Preview Lab → · Contrast checker → · Palette generator →

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