#A6AF28#A6AF28

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

Color values

HEX#A6AF28
RGBrgb(166, 175, 40)
HSLhsl(64, 63%, 42%)
HSVhsv(64, 77%, 69%)
CMYKcmyk(5.1%, 0%, 77.1%, 31.4%)
CIE-LABlab(68.69, -19.27, 62.74)
CIE-LCHlch(68.69, 65.63, 107.07°)
OKLaboklab(72.35% -0.0597 0.1373)
OKLCHoklch(72.35% 0.15 113.5)
XYZxyz(31.4399, 38.9208, 7.8634)
Luminance0.3892 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A6AF28 #3128AF
analogous
#AF7528 #A6AF28 #63AF28
triadic
#A6AF28 #28A6AF #AF28A6
tetradic
#A6AF28 #28AF75 #3128AF #AF2863
square
#A6AF28 #28AF75 #3128AF #AF2863
split-complementary
#A6AF28 #2863AF #7528AF
monochromatic
#474B11 #777D1D #A6AF28 #CAD441 #D8DF73

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##A6AF28#FFFFFF#000000##000000
##A6AF281.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)
#BCA601
Deuteranopia (green-blind)
#BCA934
Tritanopia (blue-blind)
#B1A496
Achromatopsia (no color)
#A8A8A8

Design tokens & code

CSS
--color: #a6af28;
/* rgb */ color: rgb(166, 175, 40);
/* oklch */ color: oklch(72.4% 0.150 113.5);
Tailwind
colors: {
  custom: {
    50: '#c4c66e',
    500: '#a6af28',
    950: '#000000',
  },
}
SCSS
$custom: #a6af28;
$custom-light: #c4c66e;
$custom-dark: #000000;
JSON
{
  "hex": "#a6af28",
  "rgb": {
    "r": 166,
    "g": 175,
    "b": 40
  },
  "hsl": {
    "h": 64,
    "s": 62.791,
    "l": 42.157
  },
  "oklch": {
    "l": 0.72352,
    "c": 0.14968,
    "h": 113.5
  },
  "luminance": 0.3892
}

Semantic roles & 50–950 ramp

primary
#A6AF28
secondary
#736DC6
accent
#42E64D
background
#FCFCF7
surface
#F8F8ED
border
#D1D1C8
text
#131308
muted
#82827B

Preview Lab

Preview with #A6AF28

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

Preview Lab → · Contrast checker → · Palette generator →

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