#A6B127#A6B127

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

Color values

HEX#A6B127
RGBrgb(166, 177, 39)
HSLhsl(65, 64%, 42%)
HSVhsv(65, 78%, 69%)
CMYKcmyk(6.2%, 0%, 78%, 30.6%)
CIE-LABlab(69.25, -20.31, 63.55)
CIE-LCHlch(69.25, 66.72, 107.72°)
OKLaboklab(72.8% -0.0626 0.1388)
OKLCHoklch(72.8% 0.152 114.3)
XYZxyz(31.8152, 39.6984, 7.9056)
Luminance0.3970 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A6B127 #3227B1
analogous
#B17727 #A6B127 #61B127
triadic
#A6B127 #27A6B1 #B127A6
tetradic
#A6B127 #27B177 #3227B1 #B12761
square
#A6B127 #27B177 #3227B1 #B12761
split-complementary
#A6B127 #2761B1 #7727B1
monochromatic
#484D11 #777F1C #A6B127 #C9D540 #D7E072

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##A6B127#FFFFFF#000000##000000
##A6B1271.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)
#BEAA34
Tritanopia (blue-blind)
#B1A698
Achromatopsia (no color)
#A9A9A9

Design tokens & code

CSS
--color: #a6b127;
/* rgb */ color: rgb(166, 177, 39);
/* oklch */ color: oklch(72.8% 0.152 114.3);
Tailwind
colors: {
  custom: {
    50: '#c4c86d',
    500: '#a6b127',
    950: '#000000',
  },
}
SCSS
$custom: #a6b127;
$custom-light: #c4c86d;
$custom-dark: #000000;
JSON
{
  "hex": "#a6b127",
  "rgb": {
    "r": 166,
    "g": 177,
    "b": 39
  },
  "hsl": {
    "h": 64.783,
    "s": 63.889,
    "l": 42.353
  },
  "oklch": {
    "l": 0.728,
    "c": 0.15231,
    "h": 114.3
  },
  "luminance": 0.39698
}

Semantic roles & 50–950 ramp

primary
#A6B127
secondary
#746DC7
accent
#41E74E
background
#FCFCF7
surface
#F8F8ED
border
#D1D1C8
text
#131308
muted
#82827B

Preview Lab

Preview with #A6B127

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

Preview Lab → · Contrast checker → · Palette generator →

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