#A2B226#A2B226

#A2B226 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#A2B226
RGBrgb(162, 178, 38)
HSLhsl(67, 65%, 42%)
HSVhsv(67, 79%, 70%)
CMYKcmyk(9%, 0%, 78.7%, 30.2%)
CIE-LABlab(69.23, -22.56, 63.72)
CIE-LCHlch(69.23, 67.59, 109.50°)
OKLaboklab(72.7% -0.0687 0.1392)
OKLCHoklch(72.7% 0.155 116.3)
XYZxyz(31.1714, 39.6626, 7.8469)
Luminance0.3966 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A2B226 #3626B2
analogous
#B27C26 #A2B226 #5CB226
triadic
#A2B226 #26A2B2 #B226A2
tetradic
#A2B226 #26B27C #3626B2 #B2265C
square
#A2B226 #26B27C #3626B2 #B2265C
split-complementary
#A2B226 #265CB2 #7C26B2
monochromatic
#464D10 #74801B #A2B226 #C5D63F #D4E172

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##A2B226#FFFFFF#000000##000000
##A2B2261.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)
#BDAA33
Tritanopia (blue-blind)
#ADA798
Achromatopsia (no color)
#A9A9A9

Design tokens & code

CSS
--color: #a2b226;
/* rgb */ color: rgb(162, 178, 38);
/* oklch */ color: oklch(72.7% 0.155 116.3);
Tailwind
colors: {
  custom: {
    50: '#c1c86d',
    500: '#a2b226',
    950: '#000000',
  },
}
SCSS
$custom: #a2b226;
$custom-light: #c1c86d;
$custom-dark: #000000;
JSON
{
  "hex": "#a2b226",
  "rgb": {
    "r": 162,
    "g": 178,
    "b": 38
  },
  "hsl": {
    "h": 66.857,
    "s": 64.815,
    "l": 42.353
  },
  "oklch": {
    "l": 0.72702,
    "c": 0.1552,
    "h": 116.3
  },
  "luminance": 0.39662
}

Semantic roles & 50–950 ramp

primary
#A2B226
secondary
#776CC8
accent
#40E853
background
#FCFCF6
surface
#F8F8EC
border
#D1D1C7
text
#131308
muted
#82827A

Preview Lab

Preview with #A2B226

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

Preview Lab → · Contrast checker → · Palette generator →

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