#A6AF1E#A6AF1E

#A6AF1E is a light, vivid yellow. Relative luminance 0.389; OKLCH L 72.3% C 0.154 H 113.5°. Best body text is #000000 at 8.77:1 contrast (WCAG AA passes).

Color values

HEX#A6AF1E
RGBrgb(166, 175, 30)
HSLhsl(64, 71%, 40%)
HSVhsv(64, 83%, 69%)
CMYKcmyk(5.1%, 0%, 82.9%, 31.4%)
CIE-LABlab(68.65, -19.63, 65.52)
CIE-LCHlch(68.65, 68.40, 106.67°)
OKLaboklab(72.3% -0.0614 0.1415)
OKLCHoklch(72.3% 0.154 113.5)
XYZxyz(31.2912, 38.8614, 7.0807)
Luminance0.3886 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A6AF1E #271EAF
analogous
#AF6F1E #A6AF1E #5EAF1E
triadic
#A6AF1E #1EA6AF #AF1EA6
tetradic
#A6AF1E #1EAF6F #271EAF #AF1E5E
square
#A6AF1E #1EAF6F #271EAF #AF1E5E
split-complementary
#A6AF1E #1E5EAF #6F1EAF
monochromatic
#43470C #747B15 #A6AF1E #D1DB2F #DCE463

Accessibility & contrast

On white

2.39
#A6AF1E on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.77
#A6AF1E on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #A6AF1E
8.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A6AF1E#FFFFFF#000000##000000
##A6AF1E1.002.398.778.77
#FFFFFF2.391.0021.0021.00
#0000008.7721.001.001.00
##0000008.7721.001.001.00

Color blindness preview

Protanopia (red-blind)
#BDA600
Deuteranopia (green-blind)
#BDA92D
Tritanopia (blue-blind)
#B2A495
Achromatopsia (no color)
#A7A7A7

Design tokens & code

CSS
--color: #a6af1e;
/* rgb */ color: rgb(166, 175, 30);
/* oklch */ color: oklch(72.3% 0.154 113.5);
Tailwind
colors: {
  custom: {
    50: '#c4c66a',
    500: '#a6af1e',
    950: '#000000',
  },
}
SCSS
$custom: #a6af1e;
$custom-light: #c4c66a;
$custom-dark: #000000;
JSON
{
  "hex": "#a6af1e",
  "rgb": {
    "r": 166,
    "g": 175,
    "b": 30
  },
  "hsl": {
    "h": 63.724,
    "s": 70.732,
    "l": 40.196
  },
  "oklch": {
    "l": 0.72304,
    "c": 0.15423,
    "h": 113.5
  },
  "luminance": 0.38861
}

Semantic roles & 50–950 ramp

primary
#A6AF1E
secondary
#6660C9
accent
#3AED45
background
#FCFCF6
surface
#F8F8EC
border
#D1D1C7
text
#131307
muted
#82827A

Preview Lab

Preview with #A6AF1E

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

Preview Lab → · Contrast checker → · Palette generator →

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