#A6A228#A6A228

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

Color values

HEX#A6A228
RGBrgb(166, 162, 40)
HSLhsl(58, 61%, 40%)
HSVhsv(58, 76%, 65%)
CMYKcmyk(0%, 2.4%, 75.9%, 34.9%)
CIE-LABlab(65.04, -12.60, 59.38)
CIE-LCHlch(65.04, 60.70, 101.98°)
OKLaboklab(69.43% -0.0411 0.1301)
OKLCHoklch(69.43% 0.136 107.5)
XYZxyz(29.0304, 34.1019, 7.0602)
Luminance0.3410 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A6A228 #282CA6
analogous
#A66328 #A6A228 #6BA628
triadic
#A6A228 #28A6A2 #A228A6
tetradic
#A6A228 #28A663 #282CA6 #A6286B
square
#A6A228 #28A663 #282CA6 #A6286B
split-complementary
#A6A228 #286BA6 #6328A6
monochromatic
#434210 #75721C #A6A228 #D0CB3B #DCD86D

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##A6A228#FFFFFF#000000##000000
##A6A2281.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)
#B09B0B
Deuteranopia (green-blind)
#B2A032
Tritanopia (blue-blind)
#B2978B
Achromatopsia (no color)
#9E9E9E

Design tokens & code

CSS
--color: #a6a228;
/* rgb */ color: rgb(166, 162, 40);
/* oklch */ color: oklch(69.4% 0.136 107.5);
Tailwind
colors: {
  custom: {
    50: '#c4bd6c',
    500: '#a6a228',
    950: '#000000',
  },
}
SCSS
$custom: #a6a228;
$custom-light: #c4bd6c;
$custom-dark: #000000;
JSON
{
  "hex": "#a6a228",
  "rgb": {
    "r": 166,
    "g": 162,
    "b": 40
  },
  "hsl": {
    "h": 58.095,
    "s": 61.165,
    "l": 40.392
  },
  "oklch": {
    "l": 0.69433,
    "c": 0.13648,
    "h": 107.5
  },
  "luminance": 0.34101
}

Semantic roles & 50–950 ramp

primary
#A6A228
secondary
#676AC2
accent
#49E444
background
#FCFBF6
surface
#F8F6EC
border
#D1D0C7
text
#131207
muted
#82817A

Preview Lab

Preview with #A6A228

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

Preview Lab → · Contrast checker → · Palette generator →

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