#A2B227#A2B227

#A2B227 is a light, vivid yellow. Relative luminance 0.397; OKLCH L 72.7% C 0.155 H 116.3°. Best body text is #000000 at 8.93:1 contrast (WCAG AA passes).

Color values

HEX#A2B227
RGBrgb(162, 178, 39)
HSLhsl(67, 64%, 43%)
HSVhsv(67, 78%, 70%)
CMYKcmyk(9%, 0%, 78.1%, 30.2%)
CIE-LABlab(69.23, -22.52, 63.42)
CIE-LCHlch(69.23, 67.30, 109.55°)
OKLaboklab(72.71% -0.0685 0.1387)
OKLCHoklch(72.71% 0.155 116.3)
XYZxyz(31.1877, 39.6691, 7.9330)
Luminance0.3967 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A2B227 #3727B2
analogous
#B27C27 #A2B227 #5DB227
triadic
#A2B227 #27A2B2 #B227A2
tetradic
#A2B227 #27B27C #3727B2 #B2275D
square
#A2B227 #27B27C #3727B2 #B2275D
split-complementary
#A2B227 #275DB2 #7C27B2
monochromatic
#474E11 #74801C #A2B227 #C4D541 #D4E073

Accessibility & contrast

On white

2.35
#A2B227 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.93
#A2B227 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #A2B227
8.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A2B227#FFFFFF#000000##000000
##A2B2271.002.358.938.93
#FFFFFF2.351.0021.0021.00
#0000008.9321.001.001.00
##0000008.9321.001.001.00

Color blindness preview

Protanopia (red-blind)
#BFA800
Deuteranopia (green-blind)
#BDAA34
Tritanopia (blue-blind)
#ADA898
Achromatopsia (no color)
#A9A9A9

Design tokens & code

CSS
--color: #a2b227;
/* rgb */ color: rgb(162, 178, 39);
/* oklch */ color: oklch(72.7% 0.155 116.3);
Tailwind
colors: {
  custom: {
    50: '#c1c86e',
    500: '#a2b227',
    950: '#000000',
  },
}
SCSS
$custom: #a2b227;
$custom-light: #c1c86e;
$custom-dark: #000000;
JSON
{
  "hex": "#a2b227",
  "rgb": {
    "r": 162,
    "g": 178,
    "b": 39
  },
  "hsl": {
    "h": 66.906,
    "s": 64.055,
    "l": 42.549
  },
  "oklch": {
    "l": 0.72707,
    "c": 0.15471,
    "h": 116.3
  },
  "luminance": 0.39669
}

Semantic roles & 50–950 ramp

primary
#A2B227
secondary
#786DC8
accent
#41E754
background
#FCFCF7
surface
#F8F8ED
border
#D1D1C8
text
#131308
muted
#82827B

Preview Lab

Preview with #A2B227

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

Preview Lab → · Contrast checker → · Palette generator →

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