#A8A223#A8A223

#A8A223 is a light, vivid yellow. Relative luminance 0.343; OKLCH L 69.6% C 0.139 H 106.6°. Best body text is #000000 at 7.86:1 contrast (WCAG AA passes).

Color values

HEX#A8A223
RGBrgb(168, 162, 35)
HSLhsl(57, 66%, 40%)
HSVhsv(57, 79%, 66%)
CMYKcmyk(0%, 3.6%, 79.2%, 34.1%)
CIE-LABlab(65.19, -11.91, 61.18)
CIE-LCHlch(65.19, 62.33, 101.02°)
OKLaboklab(69.58% -0.0397 0.1329)
OKLCHoklch(69.58% 0.139 106.6)
XYZxyz(29.3734, 34.2879, 6.6608)
Luminance0.3429 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A8A223 #2329A8
analogous
#A85F23 #A8A223 #6CA823
triadic
#A8A223 #23A8A2 #A223A8
tetradic
#A8A223 #23A85F #2329A8 #A8236C
square
#A8A223 #23A85F #2329A8 #A8236C
split-complementary
#A8A223 #236CA8 #5F23A8
monochromatic
#43400E #757118 #A8A223 #D5CD34 #DFDA66

Accessibility & contrast

On white

2.67
#A8A223 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.86
#A8A223 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #A8A223
7.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A8A223#FFFFFF#000000##000000
##A8A2231.002.677.867.86
#FFFFFF2.671.0021.0021.00
#0000007.8621.001.001.00
##0000007.8621.001.001.00

Color blindness preview

Protanopia (red-blind)
#B09C00
Deuteranopia (green-blind)
#B3A02E
Tritanopia (blue-blind)
#B5978B
Achromatopsia (no color)
#9E9E9E

Design tokens & code

CSS
--color: #a8a223;
/* rgb */ color: rgb(168, 162, 35);
/* oklch */ color: oklch(69.6% 0.139 106.6);
Tailwind
colors: {
  custom: {
    50: '#c6bd6a',
    500: '#a8a223',
    950: '#000000',
  },
}
SCSS
$custom: #a8a223;
$custom-light: #c6bd6a;
$custom-dark: #000000;
JSON
{
  "hex": "#a8a223",
  "rgb": {
    "r": 168,
    "g": 162,
    "b": 35
  },
  "hsl": {
    "h": 57.293,
    "s": 65.517,
    "l": 39.804
  },
  "oklch": {
    "l": 0.69584,
    "c": 0.13876,
    "h": 106.6
  },
  "luminance": 0.34287
}

Semantic roles & 50–950 ramp

primary
#A8A223
secondary
#6267C5
accent
#47E83F
background
#FCFBF6
surface
#F9F6EC
border
#D2D0C7
text
#131207
muted
#82817A

Preview Lab

Preview with #A8A223

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

Preview Lab → · Contrast checker → · Palette generator →

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