#A6AF2B#A6AF2B

#A6AF2B 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#A6AF2B
RGBrgb(166, 175, 43)
HSLhsl(64, 61%, 43%)
HSVhsv(64, 75%, 69%)
CMYKcmyk(5.1%, 0%, 75.4%, 31.4%)
CIE-LABlab(68.71, -19.14, 61.79)
CIE-LCHlch(68.71, 64.68, 107.21°)
OKLaboklab(72.37% -0.0591 0.1358)
OKLCHoklch(72.37% 0.148 113.5)
XYZxyz(31.4929, 38.9420, 8.1426)
Luminance0.3894 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A6AF2B #342BAF
analogous
#AF762B #A6AF2B #64AF2B
triadic
#A6AF2B #2BA6AF #AF2BA6
tetradic
#A6AF2B #2BAF76 #342BAF #AF2B64
square
#A6AF2B #2BAF76 #342BAF #AF2B64
split-complementary
#A6AF2B #2B64AF #762BAF
monochromatic
#494D13 #777E1F #A6AF2B #C8D146 #D7DE77

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##A6AF2B#FFFFFF#000000##000000
##A6AF2B1.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)
#BCA60B
Deuteranopia (green-blind)
#BCA936
Tritanopia (blue-blind)
#B1A496
Achromatopsia (no color)
#A8A8A8

Design tokens & code

CSS
--color: #a6af2b;
/* rgb */ color: rgb(166, 175, 43);
/* oklch */ color: oklch(72.4% 0.148 113.5);
Tailwind
colors: {
  custom: {
    50: '#c4c66f',
    500: '#a6af2b',
    950: '#000000',
  },
}
SCSS
$custom: #a6af2b;
$custom-light: #c4c66f;
$custom-dark: #000000;
JSON
{
  "hex": "#a6af2b",
  "rgb": {
    "r": 166,
    "g": 175,
    "b": 43
  },
  "hsl": {
    "h": 64.091,
    "s": 60.55,
    "l": 42.745
  },
  "oklch": {
    "l": 0.72369,
    "c": 0.14809,
    "h": 113.5
  },
  "luminance": 0.38941
}

Semantic roles & 50–950 ramp

primary
#A6AF2B
secondary
#7670C5
accent
#44E44F
background
#FCFCF7
surface
#F8F8ED
border
#D1D1C8
text
#131308
muted
#82827B

Preview Lab

Preview with #A6AF2B

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

Preview Lab → · Contrast checker → · Palette generator →

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