#A8A21F#A8A21F

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

Color values

HEX#A8A21F
RGBrgb(168, 162, 31)
HSLhsl(57, 69%, 39%)
HSVhsv(57, 82%, 66%)
CMYKcmyk(0%, 3.6%, 81.5%, 34.1%)
CIE-LABlab(65.17, -12.05, 62.33)
CIE-LCHlch(65.17, 63.48, 100.94°)
OKLaboklab(69.56% -0.0404 0.1347)
OKLCHoklch(69.56% 0.141 106.7)
XYZxyz(29.3174, 34.2655, 6.3657)
Luminance0.3426 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A8A21F #1F25A8
analogous
#A85E1F #A8A21F #6AA81F
triadic
#A8A21F #1FA8A2 #A21FA8
tetradic
#A8A21F #1FA85E #1F25A8 #A81F6A
square
#A8A21F #1FA85E #1F25A8 #A81F6A
split-complementary
#A8A21F #1F6AA8 #5E1FA8
monochromatic
#413E0C #747015 #A8A21F #D8D12C #E2DC60

Accessibility & contrast

On white

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

On black

7.85
#A8A21F on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #A8A21F
7.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A8A21F#FFFFFF#000000##000000
##A8A21F1.002.677.857.85
#FFFFFF2.671.0021.0021.00
#0000007.8521.001.001.00
##0000007.8521.001.001.00

Color blindness preview

Protanopia (red-blind)
#B19C00
Deuteranopia (green-blind)
#B3A02B
Tritanopia (blue-blind)
#B5978A
Achromatopsia (no color)
#9E9E9E

Design tokens & code

CSS
--color: #a8a21f;
/* rgb */ color: rgb(168, 162, 31);
/* oklch */ color: oklch(69.6% 0.141 106.7);
Tailwind
colors: {
  custom: {
    50: '#c6bd68',
    500: '#a8a21f',
    950: '#000000',
  },
}
SCSS
$custom: #a8a21f;
$custom-light: #c6bd68;
$custom-dark: #000000;
JSON
{
  "hex": "#a8a21f",
  "rgb": {
    "r": 168,
    "g": 162,
    "b": 31
  },
  "hsl": {
    "h": 57.372,
    "s": 68.844,
    "l": 39.02
  },
  "oklch": {
    "l": 0.69564,
    "c": 0.1406,
    "h": 106.7
  },
  "luminance": 0.34264
}

Semantic roles & 50–950 ramp

primary
#A8A21F
secondary
#5D61C6
accent
#44EC3C
background
#FCFBF6
surface
#F9F6EB
border
#D2D0C6
text
#131207
muted
#82817A

Preview Lab

Preview with #A8A21F

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

Preview Lab → · Contrast checker → · Palette generator →

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