#A6AF23#A6AF23

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

Color values

HEX#A6AF23
RGBrgb(166, 175, 35)
HSLhsl(64, 67%, 41%)
HSVhsv(64, 80%, 69%)
CMYKcmyk(5.1%, 0%, 80%, 31.4%)
CIE-LABlab(68.67, -19.46, 64.20)
CIE-LCHlch(68.67, 67.09, 106.86°)
OKLaboklab(72.33% -0.0606 0.1395)
OKLCHoklch(72.33% 0.152 113.5)
XYZxyz(31.3603, 38.8890, 7.4441)
Luminance0.3889 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A6AF23 #2C23AF
analogous
#AF7223 #A6AF23 #60AF23
triadic
#A6AF23 #23A6AF #AF23A6
tetradic
#A6AF23 #23AF72 #2C23AF #AF2360
square
#A6AF23 #23AF72 #2C23AF #AF2360
split-complementary
#A6AF23 #2360AF #7223AF
monochromatic
#45490F #767C19 #A6AF23 #CDD738 #DAE16B

Accessibility & contrast

On white

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

On black

8.78
#A6AF23 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #A6AF23
8.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A6AF23#FFFFFF#000000##000000
##A6AF231.002.398.788.78
#FFFFFF2.391.0021.0021.00
#0000008.7821.001.001.00
##0000008.7821.001.001.00

Color blindness preview

Protanopia (red-blind)
#BCA600
Deuteranopia (green-blind)
#BCA931
Tritanopia (blue-blind)
#B2A496
Achromatopsia (no color)
#A7A7A7

Design tokens & code

CSS
--color: #a6af23;
/* rgb */ color: rgb(166, 175, 35);
/* oklch */ color: oklch(72.3% 0.152 113.5);
Tailwind
colors: {
  custom: {
    50: '#c4c66c',
    500: '#a6af23',
    950: '#000000',
  },
}
SCSS
$custom: #a6af23;
$custom-light: #c4c66c;
$custom-dark: #000000;
JSON
{
  "hex": "#a6af23",
  "rgb": {
    "r": 166,
    "g": 175,
    "b": 35
  },
  "hsl": {
    "h": 63.857,
    "s": 66.667,
    "l": 41.176
  },
  "oklch": {
    "l": 0.72326,
    "c": 0.15211,
    "h": 113.5
  },
  "luminance": 0.38888
}

Semantic roles & 50–950 ramp

primary
#A6AF23
secondary
#6D66C7
accent
#3EEA49
background
#FCFCF6
surface
#F8F8EC
border
#D1D1C7
text
#131307
muted
#82827A

Preview Lab

Preview with #A6AF23

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

Preview Lab → · Contrast checker → · Palette generator →

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