#A6A227#A6A227

#A6A227 is a light, vivid yellow. Relative luminance 0.341; OKLCH L 69.4% C 0.137 H 107.6°. Best body text is #000000 at 7.82:1 contrast (WCAG AA passes).

Color values

HEX#A6A227
RGBrgb(166, 162, 39)
HSLhsl(58, 62%, 40%)
HSVhsv(58, 77%, 65%)
CMYKcmyk(0%, 2.4%, 76.5%, 34.9%)
CIE-LABlab(65.04, -12.64, 59.71)
CIE-LCHlch(65.04, 61.03, 101.95°)
OKLaboklab(69.43% -0.0413 0.1306)
OKLCHoklch(69.43% 0.137 107.6)
XYZxyz(29.0136, 34.0951, 6.9718)
Luminance0.3409 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A6A227 #272BA6
analogous
#A66227 #A6A227 #6BA627
triadic
#A6A227 #27A6A2 #A227A6
tetradic
#A6A227 #27A662 #272BA6 #A6276B
square
#A6A227 #27A662 #272BA6 #A6276B
split-complementary
#A6A227 #276BA6 #6227A6
monochromatic
#434110 #74721B #A6A227 #D1CC3A #DCD96B

Accessibility & contrast

On white

2.69
#A6A227 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.82
#A6A227 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #A6A227
7.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A6A227#FFFFFF#000000##000000
##A6A2271.002.697.827.82
#FFFFFF2.691.0021.0021.00
#0000007.8221.001.001.00
##0000007.8221.001.001.00

Color blindness preview

Protanopia (red-blind)
#B09B08
Deuteranopia (green-blind)
#B2A031
Tritanopia (blue-blind)
#B2978B
Achromatopsia (no color)
#9E9E9E

Design tokens & code

CSS
--color: #a6a227;
/* rgb */ color: rgb(166, 162, 39);
/* oklch */ color: oklch(69.4% 0.137 107.6);
Tailwind
colors: {
  custom: {
    50: '#c4bd6c',
    500: '#a6a227',
    950: '#000000',
  },
}
SCSS
$custom: #a6a227;
$custom-light: #c4bd6c;
$custom-dark: #000000;
JSON
{
  "hex": "#a6a227",
  "rgb": {
    "r": 166,
    "g": 162,
    "b": 39
  },
  "hsl": {
    "h": 58.11,
    "s": 61.951,
    "l": 40.196
  },
  "oklch": {
    "l": 0.69427,
    "c": 0.13702,
    "h": 107.6
  },
  "luminance": 0.34094
}

Semantic roles & 50–950 ramp

primary
#A6A227
secondary
#6669C3
accent
#48E543
background
#FCFBF6
surface
#F8F6EC
border
#D1D0C7
text
#131207
muted
#82817A

Preview Lab

Preview with #A6A227

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

Preview Lab → · Contrast checker → · Palette generator →

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