#A8B126#A8B126

#A8B126 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#A8B126
RGBrgb(168, 177, 38)
HSLhsl(64, 65%, 42%)
HSVhsv(64, 79%, 69%)
CMYKcmyk(5.1%, 0%, 78.5%, 30.6%)
CIE-LABlab(69.41, -19.49, 64.05)
CIE-LCHlch(69.41, 66.95, 106.92°)
OKLaboklab(72.96% -0.0606 0.1396)
OKLCHoklch(72.96% 0.152 113.5)
XYZxyz(32.2215, 39.9098, 7.8393)
Luminance0.3991 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A8B126 #2F26B1
analogous
#B17526 #A8B126 #63B126
triadic
#A8B126 #26A8B1 #B126A8
tetradic
#A8B126 #26B175 #2F26B1 #B12663
square
#A8B126 #26B175 #2F26B1 #B12663
split-complementary
#A8B126 #2663B1 #7526B1
monochromatic
#484C10 #787F1B #A8B126 #CCD63F #D9E071

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##A8B126#FFFFFF#000000##000000
##A8B1261.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)
#BEAB33
Tritanopia (blue-blind)
#B4A697
Achromatopsia (no color)
#A9A9A9

Design tokens & code

CSS
--color: #a8b126;
/* rgb */ color: rgb(168, 177, 38);
/* oklch */ color: oklch(73.0% 0.152 113.5);
Tailwind
colors: {
  custom: {
    50: '#c6c86d',
    500: '#a8b126',
    950: '#000000',
  },
}
SCSS
$custom: #a8b126;
$custom-light: #c6c86d;
$custom-dark: #000000;
JSON
{
  "hex": "#a8b126",
  "rgb": {
    "r": 168,
    "g": 177,
    "b": 38
  },
  "hsl": {
    "h": 63.885,
    "s": 64.651,
    "l": 42.157
  },
  "oklch": {
    "l": 0.72958,
    "c": 0.1522,
    "h": 113.5
  },
  "luminance": 0.39909
}

Semantic roles & 50–950 ramp

primary
#A8B126
secondary
#716BC7
accent
#40E84B
background
#FCFCF6
surface
#F9F8EC
border
#D2D1C7
text
#131308
muted
#82827A

Preview Lab

Preview with #A8B126

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

Preview Lab → · Contrast checker → · Palette generator →

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