#A2B127#A2B127

#A2B127 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#A2B127
RGBrgb(162, 177, 39)
HSLhsl(67, 64%, 42%)
HSVhsv(67, 78%, 69%)
CMYKcmyk(8.5%, 0%, 78%, 30.6%)
CIE-LABlab(68.95, -22.02, 63.16)
CIE-LCHlch(68.95, 66.89, 109.22°)
OKLaboklab(72.48% -0.0672 0.1382)
OKLCHoklch(72.48% 0.154 115.9)
XYZxyz(30.9895, 39.2726, 7.8669)
Luminance0.3927 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A2B127 #3627B1
analogous
#B17B27 #A2B127 #5DB127
triadic
#A2B127 #27A2B1 #B127A2
tetradic
#A2B127 #27B17B #3627B1 #B1275D
square
#A2B127 #27B17B #3627B1 #B1275D
split-complementary
#A2B127 #275DB1 #7B27B1
monochromatic
#464D11 #747F1C #A2B127 #C5D540 #D4E072

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##A2B127#FFFFFF#000000##000000
##A2B1271.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)
#BEA800
Deuteranopia (green-blind)
#BDA934
Tritanopia (blue-blind)
#ADA798
Achromatopsia (no color)
#A8A8A8

Design tokens & code

CSS
--color: #a2b127;
/* rgb */ color: rgb(162, 177, 39);
/* oklch */ color: oklch(72.5% 0.154 115.9);
Tailwind
colors: {
  custom: {
    50: '#c1c86d',
    500: '#a2b127',
    950: '#000000',
  },
}
SCSS
$custom: #a2b127;
$custom-light: #c1c86d;
$custom-dark: #000000;
JSON
{
  "hex": "#a2b127",
  "rgb": {
    "r": 162,
    "g": 177,
    "b": 39
  },
  "hsl": {
    "h": 66.522,
    "s": 63.889,
    "l": 42.353
  },
  "oklch": {
    "l": 0.72478,
    "c": 0.15361,
    "h": 115.9
  },
  "luminance": 0.39272
}

Semantic roles & 50–950 ramp

primary
#A2B127
secondary
#776DC7
accent
#41E753
background
#FCFCF6
surface
#F8F8EC
border
#D1D1C7
text
#131308
muted
#82827A

Preview Lab

Preview with #A2B127

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

Preview Lab → · Contrast checker → · Palette generator →

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