#A6B731#A6B731

#A6B731 is a light, vivid yellow. Relative luminance 0.422; OKLCH L 74.2% C 0.153 H 116.7°. Best body text is #000000 at 9.44:1 contrast (WCAG AA passes).

Color values

HEX#A6B731
RGBrgb(166, 183, 49)
HSLhsl(68, 58%, 45%)
HSVhsv(68, 73%, 72%)
CMYKcmyk(9.3%, 0%, 73.2%, 28.2%)
CIE-LABlab(71.01, -22.84, 61.93)
CIE-LCHlch(71.01, 66.01, 110.25°)
OKLaboklab(74.22% -0.0688 0.1372)
OKLCHoklch(74.22% 0.153 116.7)
XYZxyz(33.2146, 42.1962, 9.3001)
Luminance0.4220 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A6B731 #4231B7
analogous
#B78531 #A6B731 #63B731
triadic
#A6B731 #31A6B7 #B731A6
tetradic
#A6B731 #31B785 #4231B7 #B73163
square
#A6B731 #31B785 #4231B7 #B73163
split-complementary
#A6B731 #3163B7 #8531B7
monochromatic
#4E5617 #7A8724 #A6B731 #C1D154 #D3DE84

Accessibility & contrast

On white

2.22
#A6B731 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.44
#A6B731 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #A6B731
9.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A6B731#FFFFFF#000000##000000
##A6B7311.002.229.449.44
#FFFFFF2.221.0021.0021.00
#0000009.4421.001.001.00
##0000009.4421.001.001.00

Color blindness preview

Protanopia (red-blind)
#C4AD16
Deuteranopia (green-blind)
#C2AF3C
Tritanopia (blue-blind)
#B1AD9D
Achromatopsia (no color)
#AEAEAE

Design tokens & code

CSS
--color: #a6b731;
/* rgb */ color: rgb(166, 183, 49);
/* oklch */ color: oklch(74.2% 0.153 116.7);
Tailwind
colors: {
  custom: {
    50: '#c4cc73',
    500: '#a6b731',
    950: '#000000',
  },
}
SCSS
$custom: #a6b731;
$custom-light: #c4cc73;
$custom-dark: #000000;
JSON
{
  "hex": "#a6b731",
  "rgb": {
    "r": 166,
    "g": 183,
    "b": 49
  },
  "hsl": {
    "h": 67.612,
    "s": 57.759,
    "l": 45.49
  },
  "oklch": {
    "l": 0.74223,
    "c": 0.15345,
    "h": 116.7
  },
  "luminance": 0.42196
}

Semantic roles & 50–950 ramp

primary
#A6B731
secondary
#867CC8
accent
#47E15A
background
#FCFCF7
surface
#F8F8ED
border
#D1D1C8
text
#131309
muted
#82827B

Preview Lab

Preview with #A6B731

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

Preview Lab → · Contrast checker → · Palette generator →

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