#A6B331#A6B331

#A6B331 is a light, vivid yellow. Relative luminance 0.406; OKLCH L 73.3% C 0.149 H 115.2°. Best body text is #000000 at 9.11:1 contrast (WCAG AA passes).

Color values

HEX#A6B331
RGBrgb(166, 179, 49)
HSLhsl(66, 57%, 45%)
HSVhsv(66, 73%, 70%)
CMYKcmyk(7.3%, 0%, 72.6%, 29.8%)
CIE-LABlab(69.87, -20.86, 60.84)
CIE-LCHlch(69.87, 64.32, 108.92°)
OKLaboklab(73.31% -0.0633 0.1349)
OKLCHoklch(73.31% 0.149 115.2)
XYZxyz(32.4012, 40.5695, 9.0290)
Luminance0.4057 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A6B331 #3E31B3
analogous
#B37F31 #A6B331 #65B331
triadic
#A6B331 #31A6B3 #B331A6
tetradic
#A6B331 #31B37F #3E31B3 #B33165
square
#A6B331 #31B37F #3E31B3 #B33165
split-complementary
#A6B331 #3165B3 #7F31B3
monochromatic
#4D5317 #798324 #A6B331 #C3D052 #D4DD82

Accessibility & contrast

On white

2.30
#A6B331 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.11
#A6B331 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #A6B331
9.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A6B331#FFFFFF#000000##000000
##A6B3311.002.309.119.11
#FFFFFF2.301.0021.0021.00
#0000009.1121.001.001.00
##0000009.1121.001.001.00

Color blindness preview

Protanopia (red-blind)
#C0AA18
Deuteranopia (green-blind)
#BFAC3C
Tritanopia (blue-blind)
#B1A99A
Achromatopsia (no color)
#ABABAB

Design tokens & code

CSS
--color: #a6b331;
/* rgb */ color: rgb(166, 179, 49);
/* oklch */ color: oklch(73.3% 0.149 115.2);
Tailwind
colors: {
  custom: {
    50: '#c4c972',
    500: '#a6b331',
    950: '#000000',
  },
}
SCSS
$custom: #a6b331;
$custom-light: #c4c972;
$custom-dark: #000000;
JSON
{
  "hex": "#a6b331",
  "rgb": {
    "r": 166,
    "g": 179,
    "b": 49
  },
  "hsl": {
    "h": 66,
    "s": 57.018,
    "l": 44.706
  },
  "oklch": {
    "l": 0.73314,
    "c": 0.14899,
    "h": 115.2
  },
  "luminance": 0.40569
}

Semantic roles & 50–950 ramp

primary
#A6B331
secondary
#827AC6
accent
#48E057
background
#FCFCF7
surface
#F8F8ED
border
#D1D1C8
text
#131308
muted
#82827B

Preview Lab

Preview with #A6B331

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

Preview Lab → · Contrast checker → · Palette generator →

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