#A2B128#A2B128

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

Color values

HEX#A2B128
RGBrgb(162, 177, 40)
HSLhsl(67, 63%, 43%)
HSVhsv(67, 77%, 69%)
CMYKcmyk(8.5%, 0%, 77.4%, 30.6%)
CIE-LABlab(68.95, -21.98, 62.86)
CIE-LCHlch(68.95, 66.59, 109.27°)
OKLaboklab(72.48% -0.067 0.1377)
OKLCHoklch(72.48% 0.153 115.9)
XYZxyz(31.0063, 39.2793, 7.9554)
Luminance0.3928 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A2B128 #3728B1
analogous
#B17B28 #A2B128 #5EB128
triadic
#A2B128 #28A2B1 #B128A2
tetradic
#A2B128 #28B17B #3728B1 #B1285E
square
#A2B128 #28B17B #3728B1 #B1285E
split-complementary
#A2B128 #285EB1 #7B28B1
monochromatic
#474D11 #747F1D #A2B128 #C4D442 #D4E074

Accessibility & contrast

On white

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

On black

8.86
#A2B128 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #A2B128
8.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A2B128#FFFFFF#000000##000000
##A2B1281.002.378.868.86
#FFFFFF2.371.0021.0021.00
#0000008.8621.001.001.00
##0000008.8621.001.001.00

Color blindness preview

Protanopia (red-blind)
#BEA800
Deuteranopia (green-blind)
#BDA935
Tritanopia (blue-blind)
#ADA798
Achromatopsia (no color)
#A8A8A8

Design tokens & code

CSS
--color: #a2b128;
/* rgb */ color: rgb(162, 177, 40);
/* oklch */ color: oklch(72.5% 0.153 115.9);
Tailwind
colors: {
  custom: {
    50: '#c1c86e',
    500: '#a2b128',
    950: '#000000',
  },
}
SCSS
$custom: #a2b128;
$custom-light: #c1c86e;
$custom-dark: #000000;
JSON
{
  "hex": "#a2b128",
  "rgb": {
    "r": 162,
    "g": 177,
    "b": 40
  },
  "hsl": {
    "h": 66.569,
    "s": 63.134,
    "l": 42.549
  },
  "oklch": {
    "l": 0.72484,
    "c": 0.15311,
    "h": 115.9
  },
  "luminance": 0.39279
}

Semantic roles & 50–950 ramp

primary
#A2B128
secondary
#786EC7
accent
#42E654
background
#FCFCF7
surface
#F8F8ED
border
#D1D1C8
text
#131308
muted
#82827B

Preview Lab

Preview with #A2B128

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

Preview Lab → · Contrast checker → · Palette generator →

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