#A2B126#A2B126

#A2B126 is a light, vivid yellow. Relative luminance 0.393; OKLCH L 72.5% C 0.154 H 115.9°. Best body text is #000000 at 8.85:1 contrast (WCAG AA passes).

Color values

HEX#A2B126
RGBrgb(162, 177, 38)
HSLhsl(66, 65%, 42%)
HSVhsv(66, 79%, 69%)
CMYKcmyk(8.5%, 0%, 78.5%, 30.6%)
CIE-LABlab(68.94, -22.06, 63.46)
CIE-LCHlch(68.94, 67.19, 109.17°)
OKLaboklab(72.47% -0.0674 0.1386)
OKLCHoklch(72.47% 0.154 115.9)
XYZxyz(30.9731, 39.2661, 7.7808)
Luminance0.3927 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A2B126 #3526B1
analogous
#B17B26 #A2B126 #5CB126
triadic
#A2B126 #26A2B1 #B126A2
tetradic
#A2B126 #26B17B #3526B1 #B1265C
square
#A2B126 #26B17B #3526B1 #B1265C
split-complementary
#A2B126 #265CB1 #7B26B1
monochromatic
#464C10 #747F1B #A2B126 #C5D63F #D4E071

Accessibility & contrast

On white

2.37
#A2B126 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.85
#A2B126 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #A2B126
8.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A2B126#FFFFFF#000000##000000
##A2B1261.002.378.858.85
#FFFFFF2.371.0021.0021.00
#0000008.8521.001.001.00
##0000008.8521.001.001.00

Color blindness preview

Protanopia (red-blind)
#BEA700
Deuteranopia (green-blind)
#BDA933
Tritanopia (blue-blind)
#ADA697
Achromatopsia (no color)
#A8A8A8

Design tokens & code

CSS
--color: #a2b126;
/* rgb */ color: rgb(162, 177, 38);
/* oklch */ color: oklch(72.5% 0.154 115.9);
Tailwind
colors: {
  custom: {
    50: '#c1c86d',
    500: '#a2b126',
    950: '#000000',
  },
}
SCSS
$custom: #a2b126;
$custom-light: #c1c86d;
$custom-dark: #000000;
JSON
{
  "hex": "#a2b126",
  "rgb": {
    "r": 162,
    "g": 177,
    "b": 38
  },
  "hsl": {
    "h": 66.475,
    "s": 64.651,
    "l": 42.157
  },
  "oklch": {
    "l": 0.72473,
    "c": 0.1541,
    "h": 115.9
  },
  "luminance": 0.39266
}

Semantic roles & 50–950 ramp

primary
#A2B126
secondary
#756BC7
accent
#40E852
background
#FCFCF6
surface
#F8F8EC
border
#D1D1C7
text
#131308
muted
#82827A

Preview Lab

Preview with #A2B126

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

Preview Lab → · Contrast checker → · Palette generator →

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