#A6B31C#A6B31C

#A6B31C 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#A6B31C
RGBrgb(166, 179, 28)
HSLhsl(65, 73%, 41%)
HSVhsv(65, 84%, 70%)
CMYKcmyk(7.3%, 0%, 84.4%, 29.8%)
CIE-LABlab(69.78, -21.68, 66.96)
CIE-LCHlch(69.78, 70.38, 107.94°)
OKLaboklab(73.2% -0.0672 0.1443)
OKLCHoklch(73.2% 0.159 115)
XYZxyz(32.0566, 40.4316, 7.2138)
Luminance0.4043 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A6B31C #291CB3
analogous
#B3751C #A6B31C #5AB31C
triadic
#A6B31C #1CA6B3 #B31CA6
tetradic
#A6B31C #1CB375 #291CB3 #B31C5A
square
#A6B31C #1CB375 #291CB3 #B31C5A
split-complementary
#A6B31C #1C5AB3 #751CB3
monochromatic
#44490B #757E14 #A6B31C #CFDE2E #DBE763

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##A6B31C#FFFFFF#000000##000000
##A6B31C1.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: #a6b31c;
/* rgb */ color: rgb(166, 179, 28);
/* oklch */ color: oklch(73.2% 0.159 115.0);
Tailwind
colors: {
  custom: {
    50: '#c4c969',
    500: '#a6b31c',
    950: '#000000',
  },
}
SCSS
$custom: #a6b31c;
$custom-light: #c4c969;
$custom-dark: #000000;
JSON
{
  "hex": "#a6b31c",
  "rgb": {
    "r": 166,
    "g": 179,
    "b": 28
  },
  "hsl": {
    "h": 65.166,
    "s": 72.947,
    "l": 40.588
  },
  "oklch": {
    "l": 0.73204,
    "c": 0.15914,
    "h": 115
  },
  "luminance": 0.40431
}

Semantic roles & 50–950 ramp

primary
#A6B31C
secondary
#695FCB
accent
#38F048
background
#FCFCF6
surface
#F8F8EC
border
#D1D1C7
text
#131307
muted
#82827A

Preview Lab

Preview with #A6B31C

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

Preview Lab → · Contrast checker → · Palette generator →

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