#A8A123#A8A123

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

Color values

HEX#A8A123
RGBrgb(168, 161, 35)
HSLhsl(57, 66%, 40%)
HSVhsv(57, 79%, 66%)
CMYKcmyk(0%, 4.2%, 79.2%, 34.1%)
CIE-LABlab(64.91, -11.39, 60.93)
CIE-LCHlch(64.91, 61.99, 100.59°)
OKLaboklab(69.36% -0.0383 0.1324)
OKLCHoklch(69.36% 0.138 106.1)
XYZxyz(29.1979, 33.9370, 6.6023)
Luminance0.3394 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A8A123 #232AA8
analogous
#A85E23 #A8A123 #6DA823
triadic
#A8A123 #23A8A1 #A123A8
tetradic
#A8A123 #23A85E #232AA8 #A8236D
square
#A8A123 #23A85E #232AA8 #A8236D
split-complementary
#A8A123 #236DA8 #5E23A8
monochromatic
#43400E #757018 #A8A123 #D5CC34 #DFD966

Accessibility & contrast

On white

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

On black

7.79
#A8A123 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #A8A123
7.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A8A123#FFFFFF#000000##000000
##A8A1231.002.707.797.79
#FFFFFF2.701.0021.0021.00
#0000007.7921.001.001.00
##0000007.7921.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #a8a123;
/* rgb */ color: rgb(168, 161, 35);
/* oklch */ color: oklch(69.4% 0.138 106.1);
Tailwind
colors: {
  custom: {
    50: '#c6bc6a',
    500: '#a8a123',
    950: '#000000',
  },
}
SCSS
$custom: #a8a123;
$custom-light: #c6bc6a;
$custom-dark: #000000;
JSON
{
  "hex": "#a8a123",
  "rgb": {
    "r": 168,
    "g": 161,
    "b": 35
  },
  "hsl": {
    "h": 56.842,
    "s": 65.517,
    "l": 39.804
  },
  "oklch": {
    "l": 0.69362,
    "c": 0.13784,
    "h": 106.1
  },
  "luminance": 0.33936
}

Semantic roles & 50–950 ramp

primary
#A8A123
secondary
#6267C5
accent
#48E83F
background
#FCFBF6
surface
#F9F6EC
border
#D2D0C7
text
#131107
muted
#82807A

Preview Lab

Preview with #A8A123

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

Preview Lab → · Contrast checker → · Palette generator →

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