#A6A226#A6A226

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

Color values

HEX#A6A226
RGBrgb(166, 162, 38)
HSLhsl(58, 63%, 40%)
HSVhsv(58, 77%, 65%)
CMYKcmyk(0%, 2.4%, 77.1%, 34.9%)
CIE-LABlab(65.03, -12.68, 60.03)
CIE-LCHlch(65.03, 61.36, 101.93°)
OKLaboklab(69.42% -0.0415 0.1311)
OKLCHoklch(69.42% 0.138 107.6)
XYZxyz(28.9972, 34.0886, 6.8857)
Luminance0.3409 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A6A226 #262AA6
analogous
#A66226 #A6A226 #6AA626
triadic
#A6A226 #26A6A2 #A226A6
tetradic
#A6A226 #26A662 #262AA6 #A6266A
square
#A6A226 #26A662 #262AA6 #A6266A
split-complementary
#A6A226 #266AA6 #6226A6
monochromatic
#42410F #74711B #A6A226 #D1CD38 #DDD96A

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##A6A226#FFFFFF#000000##000000
##A6A2261.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)
#B09B05
Deuteranopia (green-blind)
#B2A030
Tritanopia (blue-blind)
#B2978B
Achromatopsia (no color)
#9E9E9E

Design tokens & code

CSS
--color: #a6a226;
/* rgb */ color: rgb(166, 162, 38);
/* oklch */ color: oklch(69.4% 0.138 107.6);
Tailwind
colors: {
  custom: {
    50: '#c4bd6b',
    500: '#a6a226',
    950: '#000000',
  },
}
SCSS
$custom: #a6a226;
$custom-light: #c4bd6b;
$custom-dark: #000000;
JSON
{
  "hex": "#a6a226",
  "rgb": {
    "r": 166,
    "g": 162,
    "b": 38
  },
  "hsl": {
    "h": 58.125,
    "s": 62.745,
    "l": 40
  },
  "oklch": {
    "l": 0.69421,
    "c": 0.13756,
    "h": 107.6
  },
  "luminance": 0.34088
}

Semantic roles & 50–950 ramp

primary
#A6A226
secondary
#6568C3
accent
#47E642
background
#FCFBF6
surface
#F8F6EC
border
#D1D0C7
text
#131207
muted
#82817A

Preview Lab

Preview with #A6A226

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

Preview Lab → · Contrast checker → · Palette generator →

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