#A6B126#A6B126

#A6B126 is a light, vivid yellow. Relative luminance 0.397; OKLCH L 72.8% C 0.153 H 114.3°. Best body text is #000000 at 8.94:1 contrast (WCAG AA passes).

Color values

HEX#A6B126
RGBrgb(166, 177, 38)
HSLhsl(65, 65%, 42%)
HSVhsv(65, 79%, 69%)
CMYKcmyk(6.2%, 0%, 78.5%, 30.6%)
CIE-LABlab(69.25, -20.35, 63.85)
CIE-LCHlch(69.25, 67.01, 107.68°)
OKLaboklab(72.8% -0.0628 0.1393)
OKLCHoklch(72.8% 0.153 114.3)
XYZxyz(31.7989, 39.6918, 7.8195)
Luminance0.3969 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A6B126 #3126B1
analogous
#B17626 #A6B126 #61B126
triadic
#A6B126 #26A6B1 #B126A6
tetradic
#A6B126 #26B176 #3126B1 #B12661
square
#A6B126 #26B176 #3126B1 #B12661
split-complementary
#A6B126 #2661B1 #7626B1
monochromatic
#474C10 #777F1B #A6B126 #CAD63F #D8E071

Accessibility & contrast

On white

2.35
#A6B126 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.94
#A6B126 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #A6B126
8.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A6B126#FFFFFF#000000##000000
##A6B1261.002.358.948.94
#FFFFFF2.351.0021.0021.00
#0000008.9421.001.001.00
##0000008.9421.001.001.00

Color blindness preview

Protanopia (red-blind)
#BEA800
Deuteranopia (green-blind)
#BEAA33
Tritanopia (blue-blind)
#B1A697
Achromatopsia (no color)
#A9A9A9

Design tokens & code

CSS
--color: #a6b126;
/* rgb */ color: rgb(166, 177, 38);
/* oklch */ color: oklch(72.8% 0.153 114.3);
Tailwind
colors: {
  custom: {
    50: '#c4c86d',
    500: '#a6b126',
    950: '#000000',
  },
}
SCSS
$custom: #a6b126;
$custom-light: #c4c86d;
$custom-dark: #000000;
JSON
{
  "hex": "#a6b126",
  "rgb": {
    "r": 166,
    "g": 177,
    "b": 38
  },
  "hsl": {
    "h": 64.748,
    "s": 64.651,
    "l": 42.157
  },
  "oklch": {
    "l": 0.72795,
    "c": 0.1528,
    "h": 114.3
  },
  "luminance": 0.39691
}

Semantic roles & 50–950 ramp

primary
#A6B126
secondary
#736BC7
accent
#40E84D
background
#FCFCF6
surface
#F8F8EC
border
#D1D1C7
text
#131308
muted
#82827A

Preview Lab

Preview with #A6B126

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

Preview Lab → · Contrast checker → · Palette generator →

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