#A6AF26#A6AF26

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

Color values

HEX#A6AF26
RGBrgb(166, 175, 38)
HSLhsl(64, 64%, 42%)
HSVhsv(64, 78%, 69%)
CMYKcmyk(5.1%, 0%, 78.3%, 31.4%)
CIE-LABlab(68.68, -19.35, 63.34)
CIE-LCHlch(68.68, 66.23, 106.98°)
OKLaboklab(72.34% -0.0601 0.1382)
OKLCHoklch(72.34% 0.151 113.5)
XYZxyz(31.4067, 38.9076, 7.6888)
Luminance0.3891 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A6AF26 #2F26AF
analogous
#AF7426 #A6AF26 #61AF26
triadic
#A6AF26 #26A6AF #AF26A6
tetradic
#A6AF26 #26AF74 #2F26AF #AF2661
square
#A6AF26 #26AF74 #2F26AF #AF2661
split-complementary
#A6AF26 #2661AF #7426AF
monochromatic
#474A10 #767D1B #A6AF26 #CBD53D #D8E070

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##A6AF26#FFFFFF#000000##000000
##A6AF261.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)
#BCA933
Tritanopia (blue-blind)
#B1A496
Achromatopsia (no color)
#A8A8A8

Design tokens & code

CSS
--color: #a6af26;
/* rgb */ color: rgb(166, 175, 38);
/* oklch */ color: oklch(72.3% 0.151 113.5);
Tailwind
colors: {
  custom: {
    50: '#c4c66d',
    500: '#a6af26',
    950: '#000000',
  },
}
SCSS
$custom: #a6af26;
$custom-light: #c4c66d;
$custom-dark: #000000;
JSON
{
  "hex": "#a6af26",
  "rgb": {
    "r": 166,
    "g": 175,
    "b": 38
  },
  "hsl": {
    "h": 63.942,
    "s": 64.319,
    "l": 41.765
  },
  "oklch": {
    "l": 0.72341,
    "c": 0.15069,
    "h": 113.5
  },
  "luminance": 0.38907
}

Semantic roles & 50–950 ramp

primary
#A6AF26
secondary
#706AC7
accent
#40E74B
background
#FCFCF6
surface
#F8F8EC
border
#D1D1C7
text
#131308
muted
#82827A

Preview Lab

Preview with #A6AF26

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

Preview Lab → · Contrast checker → · Palette generator →

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