#A7A123#A7A123

#A7A123 is a light, vivid yellow. Relative luminance 0.338; OKLCH L 69.3% C 0.138 H 106.6°. Best body text is #000000 at 7.77:1 contrast (WCAG AA passes).

Color values

HEX#A7A123
RGBrgb(167, 161, 35)
HSLhsl(57, 65%, 40%)
HSVhsv(57, 79%, 65%)
CMYKcmyk(0%, 3.6%, 79%, 34.5%)
CIE-LABlab(64.83, -11.83, 60.82)
CIE-LCHlch(64.83, 61.96, 101.01°)
OKLaboklab(69.27% -0.0395 0.1322)
OKLCHoklch(69.27% 0.138 106.6)
XYZxyz(28.9858, 33.8276, 6.5923)
Luminance0.3383 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A7A123 #2329A7
analogous
#A75F23 #A7A123 #6BA723
triadic
#A7A123 #23A7A1 #A123A7
tetradic
#A7A123 #23A75F #2329A7 #A7236B
square
#A7A123 #23A75F #2329A7 #A7236B
split-complementary
#A7A123 #236BA7 #5F23A7
monochromatic
#423F0E #747018 #A7A123 #D4CD33 #DFD966

Accessibility & contrast

On white

2.70
#A7A123 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.77
#A7A123 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #A7A123
7.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A7A123#FFFFFF#000000##000000
##A7A1231.002.707.777.77
#FFFFFF2.701.0021.0021.00
#0000007.7721.001.001.00
##0000007.7721.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #a7a123;
/* rgb */ color: rgb(167, 161, 35);
/* oklch */ color: oklch(69.3% 0.138 106.6);
Tailwind
colors: {
  custom: {
    50: '#c5bc6a',
    500: '#a7a123',
    950: '#000000',
  },
}
SCSS
$custom: #a7a123;
$custom-light: #c5bc6a;
$custom-dark: #000000;
JSON
{
  "hex": "#a7a123",
  "rgb": {
    "r": 167,
    "g": 161,
    "b": 35
  },
  "hsl": {
    "h": 57.273,
    "s": 65.347,
    "l": 39.608
  },
  "oklch": {
    "l": 0.69272,
    "c": 0.13799,
    "h": 106.6
  },
  "luminance": 0.33827
}

Semantic roles & 50–950 ramp

primary
#A7A123
secondary
#6166C4
accent
#47E83F
background
#FCFBF6
surface
#F8F6EC
border
#D1D0C7
text
#131107
muted
#82807A

Preview Lab

Preview with #A7A123

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

Preview Lab → · Contrast checker → · Palette generator →

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