#A6B31F#A6B31F

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

Color values

HEX#A6B31F
RGBrgb(166, 179, 31)
HSLhsl(65, 70%, 41%)
HSVhsv(65, 83%, 70%)
CMYKcmyk(7.3%, 0%, 82.7%, 29.8%)
CIE-LABlab(69.79, -21.59, 66.24)
CIE-LCHlch(69.79, 69.67, 108.05°)
OKLaboklab(73.22% -0.0668 0.1432)
OKLCHoklch(73.22% 0.158 115)
XYZxyz(32.0943, 40.4467, 7.4124)
Luminance0.4045 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A6B31F #2C1FB3
analogous
#B3761F #A6B31F #5CB31F
triadic
#A6B31F #1FA6B3 #B31FA6
tetradic
#A6B31F #1FB376 #2C1FB3 #B31F5C
square
#A6B31F #1FB376 #2C1FB3 #B31F5C
split-complementary
#A6B31F #1F5CB3 #761FB3
monochromatic
#454B0D #767F16 #A6B31F #CDDC33 #DAE568

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##A6B31F#FFFFFF#000000##000000
##A6B31F1.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)
#C0AA00
Deuteranopia (green-blind)
#C0AC2F
Tritanopia (blue-blind)
#B1A899
Achromatopsia (no color)
#AAAAAA

Design tokens & code

CSS
--color: #a6b31f;
/* rgb */ color: rgb(166, 179, 31);
/* oklch */ color: oklch(73.2% 0.158 115.0);
Tailwind
colors: {
  custom: {
    50: '#c4c96b',
    500: '#a6b31f',
    950: '#000000',
  },
}
SCSS
$custom: #a6b31f;
$custom-light: #c4c96b;
$custom-dark: #000000;
JSON
{
  "hex": "#a6b31f",
  "rgb": {
    "r": 166,
    "g": 179,
    "b": 31
  },
  "hsl": {
    "h": 65.27,
    "s": 70.476,
    "l": 41.176
  },
  "oklch": {
    "l": 0.73216,
    "c": 0.158,
    "h": 115
  },
  "luminance": 0.40446
}

Semantic roles & 50–950 ramp

primary
#A6B31F
secondary
#6D64CA
accent
#3BED4A
background
#FCFCF6
surface
#F8F8EC
border
#D1D1C7
text
#131307
muted
#82827A

Preview Lab

Preview with #A6B31F

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

Preview Lab → · Contrast checker → · Palette generator →

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