#A2B040#A2B040

#A2B040 is a light, vivid yellow. Relative luminance 0.391; OKLCH L 72.4% C 0.136 H 116.0°. Best body text is #000000 at 8.82:1 contrast (WCAG AA passes).

Color values

HEX#A2B040
RGBrgb(162, 176, 64)
HSLhsl(68, 47%, 47%)
HSVhsv(68, 64%, 69%)
CMYKcmyk(8%, 0%, 63.6%, 31%)
CIE-LABlab(68.83, -20.16, 53.83)
CIE-LCHlch(68.83, 57.48, 110.53°)
OKLaboklab(72.43% -0.0597 0.1226)
OKLCHoklch(72.43% 0.136 116)
XYZxyz(31.3517, 39.1026, 10.7455)
Luminance0.3910 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A2B040 #4E40B0
analogous
#B08640 #A2B040 #6AB040
triadic
#A2B040 #40A2B0 #B040A2
tetradic
#A2B040 #40B086 #4E40B0 #B0406A
square
#A2B040 #40B086 #4E40B0 #B0406A
split-complementary
#A2B040 #406AB0 #8640B0
monochromatic
#4F561F #798330 #A2B040 #BBC766 #CFD893

Accessibility & contrast

On white

2.38
#A2B040 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.82
#A2B040 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #A2B040
8.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A2B040#FFFFFF#000000##000000
##A2B0401.002.388.828.82
#FFFFFF2.381.0021.0021.00
#0000008.8221.001.001.00
##0000008.8221.001.001.00

Color blindness preview

Protanopia (red-blind)
#BCA732
Deuteranopia (green-blind)
#BBA948
Tritanopia (blue-blind)
#ACA699
Achromatopsia (no color)
#A8A8A8

Design tokens & code

CSS
--color: #a2b040;
/* rgb */ color: rgb(162, 176, 64);
/* oklch */ color: oklch(72.4% 0.136 116.0);
Tailwind
colors: {
  custom: {
    50: '#c0c77a',
    500: '#a2b040',
    950: '#000000',
  },
}
SCSS
$custom: #a2b040;
$custom-light: #c0c77a;
$custom-dark: #000000;
JSON
{
  "hex": "#a2b040",
  "rgb": {
    "r": 162,
    "g": 176,
    "b": 64
  },
  "hsl": {
    "h": 67.5,
    "s": 46.667,
    "l": 47.059
  },
  "oklch": {
    "l": 0.72431,
    "c": 0.13632,
    "h": 116
  },
  "luminance": 0.39102
}

Semantic roles & 50–950 ramp

primary
#A2B040
secondary
#9089C3
accent
#51D662
background
#FCFCF7
surface
#F8F8EE
border
#D1D1C9
text
#13130A
muted
#82827C

Preview Lab

Preview with #A2B040

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

Preview Lab → · Contrast checker → · Palette generator →

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