#A8A128#A8A128

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

Color values

HEX#A8A128
RGBrgb(168, 161, 40)
HSLhsl(57, 62%, 41%)
HSVhsv(57, 76%, 66%)
CMYKcmyk(0%, 4.2%, 76.2%, 34.1%)
CIE-LABlab(64.94, -11.19, 59.35)
CIE-LCHlch(64.94, 60.39, 100.68°)
OKLaboklab(69.39% -0.0373 0.13)
OKLCHoklch(69.39% 0.135 106)
XYZxyz(29.2775, 33.9689, 7.0215)
Luminance0.3397 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A8A128 #282FA8
analogous
#A86128 #A8A128 #6FA828
triadic
#A8A128 #28A8A1 #A128A8
tetradic
#A8A128 #28A861 #282FA8 #A8286F
square
#A8A128 #28A861 #282FA8 #A8286F
split-complementary
#A8A128 #286FA8 #6128A8
monochromatic
#454210 #77721C #A8A128 #D1C93D #DCD66E

Accessibility & contrast

On white

2.69
#A8A128 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

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

Best text color

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

Contrast matrix

fg \ bg##A8A128#FFFFFF#000000##000000
##A8A1281.002.697.797.79
#FFFFFF2.691.0021.0021.00
#0000007.7921.001.001.00
##0000007.7921.001.001.00

Color blindness preview

Protanopia (red-blind)
#AF9B0C
Deuteranopia (green-blind)
#B2A031
Tritanopia (blue-blind)
#B5968A
Achromatopsia (no color)
#9E9E9E

Design tokens & code

CSS
--color: #a8a128;
/* rgb */ color: rgb(168, 161, 40);
/* oklch */ color: oklch(69.4% 0.135 106.0);
Tailwind
colors: {
  custom: {
    50: '#c6bc6c',
    500: '#a8a128',
    950: '#000000',
  },
}
SCSS
$custom: #a8a128;
$custom-light: #c6bc6c;
$custom-dark: #000000;
JSON
{
  "hex": "#a8a128",
  "rgb": {
    "r": 168,
    "g": 161,
    "b": 40
  },
  "hsl": {
    "h": 56.719,
    "s": 61.538,
    "l": 40.784
  },
  "oklch": {
    "l": 0.69391,
    "c": 0.13522,
    "h": 106
  },
  "luminance": 0.33968
}

Semantic roles & 50–950 ramp

primary
#A8A128
secondary
#696EC3
accent
#4CE543
background
#FCFBF6
surface
#F9F6EC
border
#D2D0C7
text
#131107
muted
#82807A

Preview Lab

Preview with #A8A128

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

Preview Lab → · Contrast checker → · Palette generator →

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