#A8A127#A8A127

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

Color values

HEX#A8A127
RGBrgb(168, 161, 39)
HSLhsl(57, 62%, 41%)
HSVhsv(57, 77%, 66%)
CMYKcmyk(0%, 4.2%, 76.8%, 34.1%)
CIE-LABlab(64.93, -11.23, 59.67)
CIE-LCHlch(64.93, 60.72, 100.66°)
OKLaboklab(69.38% -0.0375 0.1305)
OKLCHoklch(69.38% 0.136 106)
XYZxyz(29.2608, 33.9622, 6.9331)
Luminance0.3396 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A8A127 #272EA8
analogous
#A86027 #A8A127 #6EA827
triadic
#A8A127 #27A8A1 #A127A8
tetradic
#A8A127 #27A860 #272EA8 #A8276E
square
#A8A127 #27A860 #272EA8 #A8276E
split-complementary
#A8A127 #276EA8 #6027A8
monochromatic
#454210 #76711B #A8A127 #D1C93B #DDD76C

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##A8A127#FFFFFF#000000##000000
##A8A1271.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)
#AF9B09
Deuteranopia (green-blind)
#B2A031
Tritanopia (blue-blind)
#B5968A
Achromatopsia (no color)
#9E9E9E

Design tokens & code

CSS
--color: #a8a127;
/* rgb */ color: rgb(168, 161, 39);
/* oklch */ color: oklch(69.4% 0.136 106.0);
Tailwind
colors: {
  custom: {
    50: '#c6bc6b',
    500: '#a8a127',
    950: '#000000',
  },
}
SCSS
$custom: #a8a127;
$custom-light: #c6bc6b;
$custom-dark: #000000;
JSON
{
  "hex": "#a8a127",
  "rgb": {
    "r": 168,
    "g": 161,
    "b": 39
  },
  "hsl": {
    "h": 56.744,
    "s": 62.319,
    "l": 40.588
  },
  "oklch": {
    "l": 0.69385,
    "c": 0.13577,
    "h": 106
  },
  "luminance": 0.33961
}

Semantic roles & 50–950 ramp

primary
#A8A127
secondary
#676CC3
accent
#4BE542
background
#FCFBF6
surface
#F9F6EC
border
#D2D0C7
text
#131207
muted
#82817A

Preview Lab

Preview with #A8A127

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

Preview Lab → · Contrast checker → · Palette generator →

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