#A6AF34#A6AF34

#A6AF34 is a light, vivid yellow. Relative luminance 0.390; OKLCH L 72.4% C 0.143 H 113.6°. Best body text is #000000 at 8.80:1 contrast (WCAG AA passes).

Color values

HEX#A6AF34
RGBrgb(166, 175, 52)
HSLhsl(64, 54%, 45%)
HSVhsv(64, 70%, 69%)
CMYKcmyk(5.1%, 0%, 70.3%, 31.4%)
CIE-LABlab(68.76, -18.70, 58.67)
CIE-LCHlch(68.76, 61.57, 107.68°)
OKLaboklab(72.43% -0.057 0.1308)
OKLCHoklch(72.43% 0.143 113.6)
XYZxyz(31.6766, 39.0155, 9.1102)
Luminance0.3901 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A6AF34 #3D34AF
analogous
#AF7B34 #A6AF34 #69AF34
triadic
#A6AF34 #34A6AF #AF34A6
tetradic
#A6AF34 #34AF7B #3D34AF #AF3469
square
#A6AF34 #34AF7B #3D34AF #AF3469
split-complementary
#A6AF34 #3469AF #7B34AF
monochromatic
#4C5118 #798026 #A6AF34 #C3CC54 #D4DA83

Accessibility & contrast

On white

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

On black

8.80
#A6AF34 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #A6AF34
8.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A6AF34#FFFFFF#000000##000000
##A6AF341.002.398.808.80
#FFFFFF2.391.0021.0021.00
#0000008.8021.001.001.00
##0000008.8021.001.001.00

Color blindness preview

Protanopia (red-blind)
#BCA71F
Deuteranopia (green-blind)
#BCA93D
Tritanopia (blue-blind)
#B1A597
Achromatopsia (no color)
#A8A8A8

Design tokens & code

CSS
--color: #a6af34;
/* rgb */ color: rgb(166, 175, 52);
/* oklch */ color: oklch(72.4% 0.143 113.6);
Tailwind
colors: {
  custom: {
    50: '#c4c673',
    500: '#a6af34',
    950: '#000000',
  },
}
SCSS
$custom: #a6af34;
$custom-light: #c4c673;
$custom-dark: #000000;
JSON
{
  "hex": "#a6af34",
  "rgb": {
    "r": 166,
    "g": 175,
    "b": 52
  },
  "hsl": {
    "h": 64.39,
    "s": 54.185,
    "l": 44.51
  },
  "oklch": {
    "l": 0.72429,
    "c": 0.14267,
    "h": 113.6
  },
  "luminance": 0.39015
}

Semantic roles & 50–950 ramp

primary
#A6AF34
secondary
#807BC4
accent
#4ADE55
background
#FCFCF7
surface
#F8F8ED
border
#D1D1C8
text
#131309
muted
#82827B

Preview Lab

Preview with #A6AF34

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

Preview Lab → · Contrast checker → · Palette generator →

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