#A8B128#A8B128

#A8B128 is a light, vivid yellow. Relative luminance 0.399; OKLCH L 73.0% C 0.151 H 113.5°. Best body text is #000000 at 8.98:1 contrast (WCAG AA passes).

Color values

HEX#A8B128
RGBrgb(168, 177, 40)
HSLhsl(64, 63%, 43%)
HSVhsv(64, 77%, 69%)
CMYKcmyk(5.1%, 0%, 77.4%, 30.6%)
CIE-LABlab(69.41, -19.41, 63.45)
CIE-LCHlch(69.41, 66.35, 107.01°)
OKLaboklab(72.97% -0.0602 0.1387)
OKLCHoklch(72.97% 0.151 113.5)
XYZxyz(32.2546, 39.9230, 8.0139)
Luminance0.3992 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A8B128 #3128B1
analogous
#B17628 #A8B128 #63B128
triadic
#A8B128 #28A8B1 #B128A8
tetradic
#A8B128 #28B176 #3128B1 #B12863
square
#A8B128 #28B176 #3128B1 #B12863
split-complementary
#A8B128 #2863B1 #7628B1
monochromatic
#494D11 #797F1D #A8B128 #CBD442 #D8E074

Accessibility & contrast

On white

2.34
#A8B128 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.98
#A8B128 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #A8B128
8.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A8B128#FFFFFF#000000##000000
##A8B1281.002.348.988.98
#FFFFFF2.341.0021.0021.00
#0000008.9821.001.001.00
##0000008.9821.001.001.00

Color blindness preview

Protanopia (red-blind)
#BFA800
Deuteranopia (green-blind)
#BEAB34
Tritanopia (blue-blind)
#B4A698
Achromatopsia (no color)
#A9A9A9

Design tokens & code

CSS
--color: #a8b128;
/* rgb */ color: rgb(168, 177, 40);
/* oklch */ color: oklch(73.0% 0.151 113.5);
Tailwind
colors: {
  custom: {
    50: '#c6c86e',
    500: '#a8b128',
    950: '#000000',
  },
}
SCSS
$custom: #a8b128;
$custom-light: #c6c86e;
$custom-dark: #000000;
JSON
{
  "hex": "#a8b128",
  "rgb": {
    "r": 168,
    "g": 177,
    "b": 40
  },
  "hsl": {
    "h": 63.942,
    "s": 63.134,
    "l": 42.549
  },
  "oklch": {
    "l": 0.72969,
    "c": 0.15122,
    "h": 113.5
  },
  "luminance": 0.39922
}

Semantic roles & 50–950 ramp

primary
#A8B128
secondary
#746EC7
accent
#42E64C
background
#FCFCF7
surface
#F9F8ED
border
#D2D1C8
text
#131308
muted
#82827B

Preview Lab

Preview with #A8B128

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

Preview Lab → · Contrast checker → · Palette generator →

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