#A6B31D#A6B31D

#A6B31D is a light, vivid yellow. Relative luminance 0.404; OKLCH L 73.2% C 0.159 H 115.0°. Best body text is #000000 at 9.09:1 contrast (WCAG AA passes).

Color values

HEX#A6B31D
RGBrgb(166, 179, 29)
HSLhsl(65, 72%, 41%)
HSVhsv(65, 84%, 70%)
CMYKcmyk(7.3%, 0%, 83.8%, 29.8%)
CIE-LABlab(69.78, -21.65, 66.73)
CIE-LCHlch(69.78, 70.15, 107.98°)
OKLaboklab(73.21% -0.0671 0.1439)
OKLCHoklch(73.21% 0.159 115)
XYZxyz(32.0688, 40.4365, 7.2778)
Luminance0.4044 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A6B31D #2A1DB3
analogous
#B3751D #A6B31D #5BB31D
triadic
#A6B31D #1DA6B3 #B31DA6
tetradic
#A6B31D #1DB375 #2A1DB3 #B31D5B
square
#A6B31D #1DB375 #2A1DB3 #B31D5B
split-complementary
#A6B31D #1D5BB3 #751DB3
monochromatic
#444A0C #757E14 #A6B31D #CEDD30 #DBE664

Accessibility & contrast

On white

2.31
#A6B31D on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.09
#A6B31D on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #A6B31D
9.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A6B31D#FFFFFF#000000##000000
##A6B31D1.002.319.099.09
#FFFFFF2.311.0021.0021.00
#0000009.0921.001.001.00
##0000009.0921.001.001.00

Color blindness preview

Protanopia (red-blind)
#C0A900
Deuteranopia (green-blind)
#C0AC2D
Tritanopia (blue-blind)
#B1A899
Achromatopsia (no color)
#AAAAAA

Design tokens & code

CSS
--color: #a6b31d;
/* rgb */ color: rgb(166, 179, 29);
/* oklch */ color: oklch(73.2% 0.159 115.0);
Tailwind
colors: {
  custom: {
    50: '#c4c96a',
    500: '#a6b31d',
    950: '#000000',
  },
}
SCSS
$custom: #a6b31d;
$custom-light: #c4c96a;
$custom-dark: #000000;
JSON
{
  "hex": "#a6b31d",
  "rgb": {
    "r": 166,
    "g": 179,
    "b": 29
  },
  "hsl": {
    "h": 65.2,
    "s": 72.115,
    "l": 40.784
  },
  "oklch": {
    "l": 0.73208,
    "c": 0.15877,
    "h": 115
  },
  "luminance": 0.40436
}

Semantic roles & 50–950 ramp

primary
#A6B31D
secondary
#6A61CB
accent
#39EF49
background
#FCFCF6
surface
#F8F8EC
border
#D1D1C7
text
#131307
muted
#82827A

Preview Lab

Preview with #A6B31D

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

Preview Lab → · Contrast checker → · Palette generator →

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