#A6AF2C#A6AF2C

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

Color values

HEX#A6AF2C
RGBrgb(166, 175, 44)
HSLhsl(64, 60%, 43%)
HSVhsv(64, 75%, 69%)
CMYKcmyk(5.1%, 0%, 74.9%, 31.4%)
CIE-LABlab(68.71, -19.09, 61.46)
CIE-LCHlch(68.71, 64.36, 107.26°)
OKLaboklab(72.38% -0.0589 0.1353)
OKLCHoklch(72.38% 0.148 113.5)
XYZxyz(31.5114, 38.9495, 8.2404)
Luminance0.3895 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A6AF2C #352CAF
analogous
#AF762C #A6AF2C #64AF2C
triadic
#A6AF2C #2CA6AF #AF2CA6
tetradic
#A6AF2C #2CAF76 #352CAF #AF2C64
square
#A6AF2C #2CAF76 #352CAF #AF2C64
split-complementary
#A6AF2C #2C64AF #762CAF
monochromatic
#494D13 #787E20 #A6AF2C #C7D147 #D6DD78

Accessibility & contrast

On white

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

On black

8.79
#A6AF2C on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #A6AF2C
8.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A6AF2C#FFFFFF#000000##000000
##A6AF2C1.002.398.798.79
#FFFFFF2.391.0021.0021.00
#0000008.7921.001.001.00
##0000008.7921.001.001.00

Color blindness preview

Protanopia (red-blind)
#BCA60E
Deuteranopia (green-blind)
#BCA937
Tritanopia (blue-blind)
#B1A496
Achromatopsia (no color)
#A8A8A8

Design tokens & code

CSS
--color: #a6af2c;
/* rgb */ color: rgb(166, 175, 44);
/* oklch */ color: oklch(72.4% 0.148 113.5);
Tailwind
colors: {
  custom: {
    50: '#c4c66f',
    500: '#a6af2c',
    950: '#000000',
  },
}
SCSS
$custom: #a6af2c;
$custom-light: #c4c66f;
$custom-dark: #000000;
JSON
{
  "hex": "#a6af2c",
  "rgb": {
    "r": 166,
    "g": 175,
    "b": 44
  },
  "hsl": {
    "h": 64.122,
    "s": 59.817,
    "l": 42.941
  },
  "oklch": {
    "l": 0.72375,
    "c": 0.14754,
    "h": 113.5
  },
  "luminance": 0.38949
}

Semantic roles & 50–950 ramp

primary
#A6AF2C
secondary
#7772C5
accent
#45E350
background
#FCFCF7
surface
#F8F8ED
border
#D1D1C8
text
#131308
muted
#82827B

Preview Lab

Preview with #A6AF2C

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

Preview Lab → · Contrast checker → · Palette generator →

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