#A6A126#A6A126

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

Color values

HEX#A6A126
RGBrgb(166, 161, 38)
HSLhsl(58, 63%, 40%)
HSVhsv(58, 77%, 65%)
CMYKcmyk(0%, 3%, 77.1%, 34.9%)
CIE-LABlab(64.75, -12.16, 59.78)
CIE-LCHlch(64.75, 61.00, 101.50°)
OKLaboklab(69.2% -0.0401 0.1306)
OKLCHoklch(69.2% 0.137 107.1)
XYZxyz(28.8218, 33.7377, 6.8272)
Luminance0.3374 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A6A126 #262BA6
analogous
#A66126 #A6A126 #6BA626
triadic
#A6A126 #26A6A1 #A126A6
tetradic
#A6A126 #26A661 #262BA6 #A6266B
square
#A6A126 #26A661 #262BA6 #A6266B
split-complementary
#A6A126 #266BA6 #6126A6
monochromatic
#42400F #74711B #A6A126 #D1CB38 #DDD86A

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##A6A126#FFFFFF#000000##000000
##A6A1261.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)
#AF9B06
Deuteranopia (green-blind)
#B19F30
Tritanopia (blue-blind)
#B2968A
Achromatopsia (no color)
#9D9D9D

Design tokens & code

CSS
--color: #a6a126;
/* rgb */ color: rgb(166, 161, 38);
/* oklch */ color: oklch(69.2% 0.137 107.1);
Tailwind
colors: {
  custom: {
    50: '#c4bc6b',
    500: '#a6a126',
    950: '#000000',
  },
}
SCSS
$custom: #a6a126;
$custom-light: #c4bc6b;
$custom-dark: #000000;
JSON
{
  "hex": "#a6a126",
  "rgb": {
    "r": 166,
    "g": 161,
    "b": 38
  },
  "hsl": {
    "h": 57.656,
    "s": 62.745,
    "l": 40
  },
  "oklch": {
    "l": 0.69199,
    "c": 0.13661,
    "h": 107.1
  },
  "luminance": 0.33737
}

Semantic roles & 50–950 ramp

primary
#A6A126
secondary
#6569C3
accent
#48E642
background
#FCFBF6
surface
#F8F6EC
border
#D1D0C7
text
#131207
muted
#82817A

Preview Lab

Preview with #A6A126

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

Preview Lab → · Contrast checker → · Palette generator →

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