#A6A138#A6A138

#A6A138 is a light, vivid yellow. Relative luminance 0.339; OKLCH L 69.3% C 0.125 H 106.6°. Best body text is #000000 at 7.78:1 contrast (WCAG AA passes).

Color values

HEX#A6A138
RGBrgb(166, 161, 56)
HSLhsl(57, 50%, 44%)
HSVhsv(57, 66%, 65%)
CMYKcmyk(0%, 3%, 66.3%, 34.9%)
CIE-LABlab(64.87, -11.25, 53.15)
CIE-LCHlch(64.87, 54.32, 101.96°)
OKLaboklab(69.33% -0.0357 0.1198)
OKLCHoklch(69.33% 0.125 106.6)
XYZxyz(29.1856, 33.8832, 8.7434)
Luminance0.3388 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A6A138 #383DA6
analogous
#A66A38 #A6A138 #74A638
triadic
#A6A138 #38A6A1 #A138A6
tetradic
#A6A138 #38A66A #383DA6 #A63874
square
#A6A138 #38A66A #383DA6 #A63874
split-complementary
#A6A138 #3874A6 #6A38A6
monochromatic
#4A4819 #787529 #A6A138 #C6C155 #D5D183

Accessibility & contrast

On white

2.70
#A6A138 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.78
#A6A138 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #A6A138
7.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A6A138#FFFFFF#000000##000000
##A6A1381.002.707.787.78
#FFFFFF2.701.0021.0021.00
#0000007.7821.001.001.00
##0000007.7821.001.001.00

Color blindness preview

Protanopia (red-blind)
#AE9B2A
Deuteranopia (green-blind)
#B19F3F
Tritanopia (blue-blind)
#B2978C
Achromatopsia (no color)
#9D9D9D

Design tokens & code

CSS
--color: #a6a138;
/* rgb */ color: rgb(166, 161, 56);
/* oklch */ color: oklch(69.3% 0.125 106.6);
Tailwind
colors: {
  custom: {
    50: '#c3bc74',
    500: '#a6a138',
    950: '#000000',
  },
}
SCSS
$custom: #a6a138;
$custom-light: #c3bc74;
$custom-dark: #000000;
JSON
{
  "hex": "#a6a138",
  "rgb": {
    "r": 166,
    "g": 161,
    "b": 56
  },
  "hsl": {
    "h": 57.273,
    "s": 49.55,
    "l": 43.529
  },
  "oklch": {
    "l": 0.69328,
    "c": 0.12502,
    "h": 106.6
  },
  "luminance": 0.33882
}

Semantic roles & 50–950 ramp

primary
#A6A138
secondary
#7B7EBF
accent
#55D94F
background
#FCFBF7
surface
#F8F6ED
border
#D1D0C8
text
#131209
muted
#82817B

Preview Lab

Preview with #A6A138

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

Preview Lab → · Contrast checker → · Palette generator →

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