#A6A823#A6A823

#A6A823 is a light, vivid yellow. Relative luminance 0.362; OKLCH L 70.7% C 0.145 H 110.5°. Best body text is #000000 at 8.25:1 contrast (WCAG AA passes).

Color values

HEX#A6A823
RGBrgb(166, 168, 35)
HSLhsl(61, 66%, 40%)
HSVhsv(61, 79%, 66%)
CMYKcmyk(1.2%, 0%, 79.2%, 34.1%)
CIE-LABlab(66.70, -15.90, 62.46)
CIE-LCHlch(66.70, 64.45, 104.28°)
OKLaboklab(70.75% -0.0508 0.1358)
OKLCHoklch(70.75% 0.145 110.5)
XYZxyz(30.0330, 36.2345, 7.0017)
Luminance0.3623 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A6A823 #2523A8
analogous
#A86723 #A6A823 #64A823
triadic
#A6A823 #23A6A8 #A823A6
tetradic
#A6A823 #23A867 #2523A8 #A82364
square
#A6A823 #23A867 #2523A8 #A82364
split-complementary
#A6A823 #2364A8 #6723A8
monochromatic
#42430E #747518 #A6A823 #D2D534 #DDDF66

Accessibility & contrast

On white

2.55
#A6A823 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.25
#A6A823 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #A6A823
8.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A6A823#FFFFFF#000000##000000
##A6A8231.002.558.258.25
#FFFFFF2.551.0021.0021.00
#0000008.2521.001.001.00
##0000008.2521.001.001.00

Color blindness preview

Protanopia (red-blind)
#B6A000
Deuteranopia (green-blind)
#B7A42F
Tritanopia (blue-blind)
#B29D90
Achromatopsia (no color)
#A2A2A2

Design tokens & code

CSS
--color: #a6a823;
/* rgb */ color: rgb(166, 168, 35);
/* oklch */ color: oklch(70.7% 0.145 110.5);
Tailwind
colors: {
  custom: {
    50: '#c4c16b',
    500: '#a6a823',
    950: '#000000',
  },
}
SCSS
$custom: #a6a823;
$custom-light: #c4c16b;
$custom-dark: #000000;
JSON
{
  "hex": "#a6a823",
  "rgb": {
    "r": 166,
    "g": 168,
    "b": 35
  },
  "hsl": {
    "h": 60.902,
    "s": 65.517,
    "l": 39.804
  },
  "oklch": {
    "l": 0.70747,
    "c": 0.14494,
    "h": 110.5
  },
  "luminance": 0.36234
}

Semantic roles & 50–950 ramp

primary
#A6A823
secondary
#6462C5
accent
#3FE842
background
#FCFBF6
surface
#F8F7EC
border
#D1D0C7
text
#131207
muted
#82817A

Preview Lab

Preview with #A6A823

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

Preview Lab → · Contrast checker → · Palette generator →

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