#A2B240#A2B240

#A2B240 is a light, vivid yellow. Relative luminance 0.399; OKLCH L 72.9% C 0.139 H 116.8°. Best body text is #000000 at 8.98:1 contrast (WCAG AA passes).

Color values

HEX#A2B240
RGBrgb(162, 178, 64)
HSLhsl(68, 47%, 47%)
HSVhsv(68, 64%, 70%)
CMYKcmyk(9%, 0%, 64%, 30.2%)
CIE-LABlab(69.39, -21.16, 54.43)
CIE-LCHlch(69.39, 58.40, 111.24°)
OKLaboklab(72.89% -0.0625 0.1239)
OKLCHoklch(72.89% 0.139 116.8)
XYZxyz(31.7468, 39.8927, 10.8771)
Luminance0.3989 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A2B240 #5040B2
analogous
#B28940 #A2B240 #69B240
triadic
#A2B240 #40A2B2 #B240A2
tetradic
#A2B240 #40B289 #5040B2 #B24069
square
#A2B240 #40B289 #5040B2 #B24069
split-complementary
#A2B240 #4069B2 #8940B2
monochromatic
#505820 #798530 #A2B240 #BBC867 #CFD894

Accessibility & contrast

On white

2.34
#A2B240 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.98
#A2B240 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #A2B240
8.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A2B240#FFFFFF#000000##000000
##A2B2401.002.348.988.98
#FFFFFF2.341.0021.0021.00
#0000008.9821.001.001.00
##0000008.9821.001.001.00

Color blindness preview

Protanopia (red-blind)
#BEA931
Deuteranopia (green-blind)
#BCAA48
Tritanopia (blue-blind)
#ACA89A
Achromatopsia (no color)
#A9A9A9

Design tokens & code

CSS
--color: #a2b240;
/* rgb */ color: rgb(162, 178, 64);
/* oklch */ color: oklch(72.9% 0.139 116.8);
Tailwind
colors: {
  custom: {
    50: '#c0c97a',
    500: '#a2b240',
    950: '#000000',
  },
}
SCSS
$custom: #a2b240;
$custom-light: #c0c97a;
$custom-dark: #000000;
JSON
{
  "hex": "#a2b240",
  "rgb": {
    "r": 162,
    "g": 178,
    "b": 64
  },
  "hsl": {
    "h": 68.421,
    "s": 47.107,
    "l": 47.451
  },
  "oklch": {
    "l": 0.72887,
    "c": 0.13871,
    "h": 116.8
  },
  "luminance": 0.39892
}

Semantic roles & 50–950 ramp

primary
#A2B240
secondary
#928AC4
accent
#51D764
background
#FCFCF7
surface
#F8F8EE
border
#D1D1C9
text
#13130A
muted
#82827C

Preview Lab

Preview with #A2B240

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

Preview Lab → · Contrast checker → · Palette generator →

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