#A6A123#A6A123

#A6A123 is a light, vivid yellow. Relative luminance 0.337; OKLCH L 69.2% C 0.138 H 107.1°. Best body text is #000000 at 7.74:1 contrast (WCAG AA passes).

Color values

HEX#A6A123
RGBrgb(166, 161, 35)
HSLhsl(58, 65%, 39%)
HSVhsv(58, 79%, 65%)
CMYKcmyk(0%, 3%, 78.9%, 34.9%)
CIE-LABlab(64.74, -12.28, 60.71)
CIE-LCHlch(64.74, 61.94, 101.43°)
OKLaboklab(69.18% -0.0407 0.132)
OKLCHoklch(69.18% 0.138 107.1)
XYZxyz(28.7753, 33.7191, 6.5825)
Luminance0.3372 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A6A123 #2328A6
analogous
#A66023 #A6A123 #6AA623
triadic
#A6A123 #23A6A1 #A123A6
tetradic
#A6A123 #23A660 #2328A6 #A6236A
square
#A6A123 #23A660 #2328A6 #A6236A
split-complementary
#A6A123 #236AA6 #6023A6
monochromatic
#413F0E #737018 #A6A123 #D4CE32 #DFDA65

Accessibility & contrast

On white

2.71
#A6A123 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.74
#A6A123 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #A6A123
7.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A6A123#FFFFFF#000000##000000
##A6A1231.002.717.747.74
#FFFFFF2.711.0021.0021.00
#0000007.7421.001.001.00
##0000007.7421.001.001.00

Color blindness preview

Protanopia (red-blind)
#AF9B00
Deuteranopia (green-blind)
#B29F2E
Tritanopia (blue-blind)
#B3968A
Achromatopsia (no color)
#9D9D9D

Design tokens & code

CSS
--color: #a6a123;
/* rgb */ color: rgb(166, 161, 35);
/* oklch */ color: oklch(69.2% 0.138 107.1);
Tailwind
colors: {
  custom: {
    50: '#c4bc6a',
    500: '#a6a123',
    950: '#000000',
  },
}
SCSS
$custom: #a6a123;
$custom-light: #c4bc6a;
$custom-dark: #000000;
JSON
{
  "hex": "#a6a123",
  "rgb": {
    "r": 166,
    "g": 161,
    "b": 35
  },
  "hsl": {
    "h": 57.71,
    "s": 65.174,
    "l": 39.412
  },
  "oklch": {
    "l": 0.69182,
    "c": 0.13814,
    "h": 107.1
  },
  "luminance": 0.33718
}

Semantic roles & 50–950 ramp

primary
#A6A123
secondary
#6165C4
accent
#46E840
background
#FCFBF6
surface
#F8F6EC
border
#D1D0C7
text
#131207
muted
#82817A

Preview Lab

Preview with #A6A123

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

Preview Lab → · Contrast checker → · Palette generator →

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