#A8B127#A8B127

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

Color values

HEX#A8B127
RGBrgb(168, 177, 39)
HSLhsl(64, 64%, 42%)
HSVhsv(64, 78%, 69%)
CMYKcmyk(5.1%, 0%, 78%, 30.6%)
CIE-LABlab(69.41, -19.45, 63.75)
CIE-LCHlch(69.41, 66.65, 106.97°)
OKLaboklab(72.96% -0.0604 0.1392)
OKLCHoklch(72.96% 0.152 113.5)
XYZxyz(32.2378, 39.9163, 7.9255)
Luminance0.3992 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A8B127 #3027B1
analogous
#B17527 #A8B127 #63B127
triadic
#A8B127 #27A8B1 #B127A8
tetradic
#A8B127 #27B175 #3027B1 #B12763
square
#A8B127 #27B175 #3027B1 #B12763
split-complementary
#A8B127 #2763B1 #7527B1
monochromatic
#494D11 #787F1C #A8B127 #CBD540 #D9E072

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##A8B127#FFFFFF#000000##000000
##A8B1271.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: #a8b127;
/* rgb */ color: rgb(168, 177, 39);
/* oklch */ color: oklch(73.0% 0.152 113.5);
Tailwind
colors: {
  custom: {
    50: '#c6c86e',
    500: '#a8b127',
    950: '#000000',
  },
}
SCSS
$custom: #a8b127;
$custom-light: #c6c86e;
$custom-dark: #000000;
JSON
{
  "hex": "#a8b127",
  "rgb": {
    "r": 168,
    "g": 177,
    "b": 39
  },
  "hsl": {
    "h": 63.913,
    "s": 63.889,
    "l": 42.353
  },
  "oklch": {
    "l": 0.72963,
    "c": 0.15171,
    "h": 113.5
  },
  "luminance": 0.39916
}

Semantic roles & 50–950 ramp

primary
#A8B127
secondary
#736DC7
accent
#41E74C
background
#FCFCF7
surface
#F9F8ED
border
#D2D1C8
text
#131308
muted
#82827B

Preview Lab

Preview with #A8B127

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

Preview Lab → · Contrast checker → · Palette generator →

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