#A6A538#A6A538

#A6A538 is a light, vivid yellow. Relative luminance 0.353; OKLCH L 70.2% C 0.129 H 108.8°. Best body text is #000000 at 8.06:1 contrast (WCAG AA passes).

Color values

HEX#A6A538
RGBrgb(166, 165, 56)
HSLhsl(59, 50%, 44%)
HSVhsv(59, 66%, 65%)
CMYKcmyk(0%, 0.6%, 66.3%, 34.9%)
CIE-LABlab(65.98, -13.34, 54.30)
CIE-LCHlch(65.98, 55.91, 103.81°)
OKLaboklab(70.22% -0.0416 0.1222)
OKLCHoklch(70.22% 0.129 108.8)
XYZxyz(29.8958, 35.3037, 8.9801)
Luminance0.3530 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A6A538 #3839A6
analogous
#A66E38 #A6A538 #70A638
triadic
#A6A538 #38A6A5 #A538A6
tetradic
#A6A538 #38A66E #3839A6 #A63870
square
#A6A538 #38A66E #3839A6 #A63870
split-complementary
#A6A538 #3870A6 #6E38A6
monochromatic
#4A4A19 #787829 #A6A538 #C6C555 #D5D483

Accessibility & contrast

On white

2.61
#A6A538 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.06
#A6A538 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #A6A538
8.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A6A538#FFFFFF#000000##000000
##A6A5381.002.618.068.06
#FFFFFF2.611.0021.0021.00
#0000008.0621.001.001.00
##0000008.0621.001.001.00

Color blindness preview

Protanopia (red-blind)
#B29E29
Deuteranopia (green-blind)
#B4A23F
Tritanopia (blue-blind)
#B29B8F
Achromatopsia (no color)
#A0A0A0

Design tokens & code

CSS
--color: #a6a538;
/* rgb */ color: rgb(166, 165, 56);
/* oklch */ color: oklch(70.2% 0.129 108.8);
Tailwind
colors: {
  custom: {
    50: '#c3bf75',
    500: '#a6a538',
    950: '#000000',
  },
}
SCSS
$custom: #a6a538;
$custom-light: #c3bf75;
$custom-dark: #000000;
JSON
{
  "hex": "#a6a538",
  "rgb": {
    "r": 166,
    "g": 165,
    "b": 56
  },
  "hsl": {
    "h": 59.455,
    "s": 49.55,
    "l": 43.529
  },
  "oklch": {
    "l": 0.70217,
    "c": 0.12913,
    "h": 108.8
  },
  "luminance": 0.35303
}

Semantic roles & 50–950 ramp

primary
#A6A538
secondary
#7B7BBF
accent
#50D94F
background
#FCFBF7
surface
#F8F7ED
border
#D1D0C8
text
#131209
muted
#82817B

Preview Lab

Preview with #A6A538

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

Preview Lab → · Contrast checker → · Palette generator →

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