#A6A127#A6A127

#A6A127 is a light, vivid yellow. Relative luminance 0.337; OKLCH L 69.2% C 0.136 H 107.0°. Best body text is #000000 at 7.75:1 contrast (WCAG AA passes).

Color values

HEX#A6A127
RGBrgb(166, 161, 39)
HSLhsl(58, 62%, 40%)
HSVhsv(58, 77%, 65%)
CMYKcmyk(0%, 3%, 76.5%, 34.9%)
CIE-LABlab(64.76, -12.12, 59.45)
CIE-LCHlch(64.76, 60.67, 101.52°)
OKLaboklab(69.2% -0.0399 0.1301)
OKLCHoklch(69.2% 0.136 107)
XYZxyz(28.8381, 33.7442, 6.9133)
Luminance0.3374 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A6A127 #272CA6
analogous
#A66227 #A6A127 #6BA627
triadic
#A6A127 #27A6A1 #A127A6
tetradic
#A6A127 #27A662 #272CA6 #A6276B
square
#A6A127 #27A662 #272CA6 #A6276B
split-complementary
#A6A127 #276BA6 #6227A6
monochromatic
#434110 #74711B #A6A127 #D1CB3A #DCD86B

Accessibility & contrast

On white

2.71
#A6A127 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.75
#A6A127 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #A6A127
7.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A6A127#FFFFFF#000000##000000
##A6A1271.002.717.757.75
#FFFFFF2.711.0021.0021.00
#0000007.7521.001.001.00
##0000007.7521.001.001.00

Color blindness preview

Protanopia (red-blind)
#AF9B09
Deuteranopia (green-blind)
#B19F31
Tritanopia (blue-blind)
#B2968A
Achromatopsia (no color)
#9D9D9D

Design tokens & code

CSS
--color: #a6a127;
/* rgb */ color: rgb(166, 161, 39);
/* oklch */ color: oklch(69.2% 0.136 107.0);
Tailwind
colors: {
  custom: {
    50: '#c4bc6b',
    500: '#a6a127',
    950: '#000000',
  },
}
SCSS
$custom: #a6a127;
$custom-light: #c4bc6b;
$custom-dark: #000000;
JSON
{
  "hex": "#a6a127",
  "rgb": {
    "r": 166,
    "g": 161,
    "b": 39
  },
  "hsl": {
    "h": 57.638,
    "s": 61.951,
    "l": 40.196
  },
  "oklch": {
    "l": 0.69204,
    "c": 0.13608,
    "h": 107
  },
  "luminance": 0.33743
}

Semantic roles & 50–950 ramp

primary
#A6A127
secondary
#666AC3
accent
#49E543
background
#FCFBF6
surface
#F8F6EC
border
#D1D0C7
text
#131207
muted
#82817A

Preview Lab

Preview with #A6A127

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

Preview Lab → · Contrast checker → · Palette generator →

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