#A6B31B#A6B31B

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

Color values

HEX#A6B31B
RGBrgb(166, 179, 27)
HSLhsl(65, 74%, 40%)
HSVhsv(65, 85%, 70%)
CMYKcmyk(7.3%, 0%, 84.9%, 29.8%)
CIE-LABlab(69.77, -21.71, 67.19)
CIE-LCHlch(69.77, 70.61, 107.91°)
OKLaboklab(73.2% -0.0673 0.1446)
OKLCHoklch(73.2% 0.16 115)
XYZxyz(32.0448, 40.4269, 7.1518)
Luminance0.4043 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A6B31B #281BB3
analogous
#B3741B #A6B31B #5AB31B
triadic
#A6B31B #1BA6B3 #B31BA6
tetradic
#A6B31B #1BB374 #281BB3 #B31B5A
square
#A6B31B #1BB374 #281BB3 #B31B5A
split-complementary
#A6B31B #1B5AB3 #741BB3
monochromatic
#43490B #757E13 #A6B31B #D0DF2C #DCE761

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##A6B31B#FFFFFF#000000##000000
##A6B31B1.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)
#C1A900
Deuteranopia (green-blind)
#C0AC2C
Tritanopia (blue-blind)
#B1A899
Achromatopsia (no color)
#AAAAAA

Design tokens & code

CSS
--color: #a6b31b;
/* rgb */ color: rgb(166, 179, 27);
/* oklch */ color: oklch(73.2% 0.160 115.0);
Tailwind
colors: {
  custom: {
    50: '#c4c969',
    500: '#a6b31b',
    950: '#000000',
  },
}
SCSS
$custom: #a6b31b;
$custom-light: #c4c969;
$custom-dark: #000000;
JSON
{
  "hex": "#a6b31b",
  "rgb": {
    "r": 166,
    "g": 179,
    "b": 27
  },
  "hsl": {
    "h": 65.132,
    "s": 73.786,
    "l": 40.392
  },
  "oklch": {
    "l": 0.73201,
    "c": 0.1595,
    "h": 115
  },
  "luminance": 0.40426
}

Semantic roles & 50–950 ramp

primary
#A6B31B
secondary
#675ECC
accent
#37F047
background
#FCFCF6
surface
#F8F8EC
border
#D1D1C7
text
#131307
muted
#82827A

Preview Lab

Preview with #A6B31B

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

Preview Lab → · Contrast checker → · Palette generator →

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