#A6AB1F#A6AB1F

#A6AB1F is a light, vivid yellow. Relative luminance 0.373; OKLCH L 71.4% C 0.150 H 111.8°. Best body text is #000000 at 8.47:1 contrast (WCAG AA passes).

Color values

HEX#A6AB1F
RGBrgb(166, 171, 31)
HSLhsl(62, 69%, 40%)
HSVhsv(62, 82%, 67%)
CMYKcmyk(2.9%, 0%, 81.9%, 32.9%)
CIE-LABlab(67.53, -17.57, 64.30)
CIE-LCHlch(67.53, 66.66, 105.29°)
OKLaboklab(71.4% -0.0557 0.139)
OKLCHoklch(71.4% 0.15 111.8)
XYZxyz(30.5372, 37.3325, 6.8933)
Luminance0.3733 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A6AB1F #241FAB
analogous
#AB6A1F #A6AB1F #60AB1F
triadic
#A6AB1F #1FA6AB #AB1FA6
tetradic
#A6AB1F #1FAB6A #241FAB #AB1F60
square
#A6AB1F #1FAB6A #241FAB #AB1F60
split-complementary
#A6AB1F #1F60AB #6A1FAB
monochromatic
#41430C #747716 #A6AB1F #D3D92E #DEE362

Accessibility & contrast

On white

2.48
#A6AB1F on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.47
#A6AB1F on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #A6AB1F
8.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A6AB1F#FFFFFF#000000##000000
##A6AB1F1.002.488.478.47
#FFFFFF2.481.0021.0021.00
#0000008.4721.001.001.00
##0000008.4721.001.001.00

Color blindness preview

Protanopia (red-blind)
#B9A300
Deuteranopia (green-blind)
#B9A62D
Tritanopia (blue-blind)
#B2A092
Achromatopsia (no color)
#A4A4A4

Design tokens & code

CSS
--color: #a6ab1f;
/* rgb */ color: rgb(166, 171, 31);
/* oklch */ color: oklch(71.4% 0.150 111.8);
Tailwind
colors: {
  custom: {
    50: '#c4c369',
    500: '#a6ab1f',
    950: '#000000',
  },
}
SCSS
$custom: #a6ab1f;
$custom-light: #c4c369;
$custom-dark: #000000;
JSON
{
  "hex": "#a6ab1f",
  "rgb": {
    "r": 166,
    "g": 171,
    "b": 31
  },
  "hsl": {
    "h": 62.143,
    "s": 69.307,
    "l": 39.608
  },
  "oklch": {
    "l": 0.71404,
    "c": 0.14974,
    "h": 111.8
  },
  "luminance": 0.37332
}

Semantic roles & 50–950 ramp

primary
#A6AB1F
secondary
#625EC7
accent
#3CEC42
background
#FCFBF6
surface
#F8F7EC
border
#D1D0C7
text
#131207
muted
#82817A

Preview Lab

Preview with #A6AB1F

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

Preview Lab → · Contrast checker → · Palette generator →

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