#A6A128#A6A128

#A6A128 is a light, vivid yellow. Relative luminance 0.338; 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#A6A128
RGBrgb(166, 161, 40)
HSLhsl(58, 61%, 40%)
HSVhsv(58, 76%, 65%)
CMYKcmyk(0%, 3%, 75.9%, 34.9%)
CIE-LABlab(64.76, -12.08, 59.12)
CIE-LCHlch(64.76, 60.34, 101.55°)
OKLaboklab(69.21% -0.0397 0.1296)
OKLCHoklch(69.21% 0.136 107)
XYZxyz(28.8549, 33.7510, 7.0017)
Luminance0.3375 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A6A128 #282DA6
analogous
#A66228 #A6A128 #6CA628
triadic
#A6A128 #28A6A1 #A128A6
tetradic
#A6A128 #28A662 #282DA6 #A6286C
square
#A6A128 #28A662 #282DA6 #A6286C
split-complementary
#A6A128 #286CA6 #6228A6
monochromatic
#434110 #75711C #A6A128 #D0CA3B #DCD76D

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##A6A128#FFFFFF#000000##000000
##A6A1281.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)
#AF9B0C
Deuteranopia (green-blind)
#B19F32
Tritanopia (blue-blind)
#B2968A
Achromatopsia (no color)
#9D9D9D

Design tokens & code

CSS
--color: #a6a128;
/* rgb */ color: rgb(166, 161, 40);
/* oklch */ color: oklch(69.2% 0.136 107.0);
Tailwind
colors: {
  custom: {
    50: '#c4bc6c',
    500: '#a6a128',
    950: '#000000',
  },
}
SCSS
$custom: #a6a128;
$custom-light: #c4bc6c;
$custom-dark: #000000;
JSON
{
  "hex": "#a6a128",
  "rgb": {
    "r": 166,
    "g": 161,
    "b": 40
  },
  "hsl": {
    "h": 57.619,
    "s": 61.165,
    "l": 40.392
  },
  "oklch": {
    "l": 0.6921,
    "c": 0.13553,
    "h": 107
  },
  "luminance": 0.3375
}

Semantic roles & 50–950 ramp

primary
#A6A128
secondary
#676BC2
accent
#4AE444
background
#FCFBF6
surface
#F8F6EC
border
#D1D0C7
text
#131207
muted
#82817A

Preview Lab

Preview with #A6A128

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

Preview Lab → · Contrast checker → · Palette generator →

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