#A6BA31#A6BA31

#A6BA31 is a light, vivid yellow. Relative luminance 0.434; OKLCH L 74.9% C 0.157 H 117.7°. Best body text is #000000 at 9.69:1 contrast (WCAG AA passes).

Color values

HEX#A6BA31
RGBrgb(166, 186, 49)
HSLhsl(69, 58%, 46%)
HSVhsv(69, 74%, 73%)
CMYKcmyk(10.8%, 0%, 73.7%, 27.1%)
CIE-LABlab(71.86, -24.32, 62.75)
CIE-LCHlch(71.86, 67.29, 111.18°)
OKLaboklab(74.91% -0.0729 0.1389)
OKLCHoklch(74.91% 0.157 117.7)
XYZxyz(33.8400, 43.4469, 9.5085)
Luminance0.4345 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A6BA31 #4531BA
analogous
#BA8931 #A6BA31 #61BA31
triadic
#A6BA31 #31A6BA #BA31A6
tetradic
#A6BA31 #31BA89 #4531BA #BA3161
square
#A6BA31 #31BA89 #4531BA #BA3161
split-complementary
#A6BA31 #3161BA #8931BA
monochromatic
#505917 #7B8A24 #A6BA31 #C0D256 #D2DF86

Accessibility & contrast

On white

2.17
#A6BA31 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.69
#A6BA31 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #A6BA31
9.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A6BA31#FFFFFF#000000##000000
##A6BA311.002.179.699.69
#FFFFFF2.171.0021.0021.00
#0000009.6921.001.001.00
##0000009.6921.001.001.00

Color blindness preview

Protanopia (red-blind)
#C7B014
Deuteranopia (green-blind)
#C5B13D
Tritanopia (blue-blind)
#B0B0A0
Achromatopsia (no color)
#B0B0B0

Design tokens & code

CSS
--color: #a6ba31;
/* rgb */ color: rgb(166, 186, 49);
/* oklch */ color: oklch(74.9% 0.157 117.7);
Tailwind
colors: {
  custom: {
    50: '#c4ce73',
    500: '#a6ba31',
    950: '#000000',
  },
}
SCSS
$custom: #a6ba31;
$custom-light: #c4ce73;
$custom-dark: #000000;
JSON
{
  "hex": "#a6ba31",
  "rgb": {
    "r": 166,
    "g": 186,
    "b": 49
  },
  "hsl": {
    "h": 68.759,
    "s": 58.298,
    "l": 46.078
  },
  "oklch": {
    "l": 0.74907,
    "c": 0.15684,
    "h": 117.7
  },
  "luminance": 0.43447
}

Semantic roles & 50–950 ramp

primary
#A6BA31
secondary
#897EC9
accent
#46E25D
background
#FCFCF7
surface
#F8F9ED
border
#D1D2C8
text
#131309
muted
#82827B

Preview Lab

Preview with #A6BA31

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

Preview Lab → · Contrast checker → · Palette generator →

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