#A2B42F#A2B42F

#A2B42F is a light, vivid yellow. Relative luminance 0.405; OKLCH L 73.2% C 0.153 H 117.1°. Best body text is #000000 at 9.11:1 contrast (WCAG AA passes).

Color values

HEX#A2B42F
RGBrgb(162, 180, 47)
HSLhsl(68, 59%, 45%)
HSVhsv(68, 74%, 71%)
CMYKcmyk(10%, 0%, 73.9%, 29.4%)
CIE-LABlab(69.84, -23.15, 61.41)
CIE-LCHlch(69.84, 65.63, 110.65°)
OKLaboklab(73.21% -0.0696 0.1358)
OKLCHoklch(73.21% 0.153 117.1)
XYZxyz(31.7354, 40.5295, 8.8399)
Luminance0.4053 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A2B42F #412FB4
analogous
#B4832F #A2B42F #60B42F
triadic
#A2B42F #2FA2B4 #B42FA2
tetradic
#A2B42F #2FB483 #412FB4 #B42F60
square
#A2B42F #2FB483 #412FB4 #B42F60
split-complementary
#A2B42F #2F60B4 #832FB4
monochromatic
#4B5316 #768322 #A2B42F #BFD14F #D1DE80

Accessibility & contrast

On white

2.31
#A2B42F on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.11
#A2B42F on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #A2B42F
9.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A2B42F#FFFFFF#000000##000000
##A2B42F1.002.319.119.11
#FFFFFF2.311.0021.0021.00
#0000009.1121.001.001.00
##0000009.1121.001.001.00

Color blindness preview

Protanopia (red-blind)
#C0AA13
Deuteranopia (green-blind)
#BFAB3A
Tritanopia (blue-blind)
#ACAA9B
Achromatopsia (no color)
#ABABAB

Design tokens & code

CSS
--color: #a2b42f;
/* rgb */ color: rgb(162, 180, 47);
/* oklch */ color: oklch(73.2% 0.153 117.1);
Tailwind
colors: {
  custom: {
    50: '#c1ca71',
    500: '#a2b42f',
    950: '#000000',
  },
}
SCSS
$custom: #a2b42f;
$custom-light: #c1ca71;
$custom-dark: #000000;
JSON
{
  "hex": "#a2b42f",
  "rgb": {
    "r": 162,
    "g": 180,
    "b": 47
  },
  "hsl": {
    "h": 68.12,
    "s": 58.59,
    "l": 44.51
  },
  "oklch": {
    "l": 0.73212,
    "c": 0.15263,
    "h": 117.1
  },
  "luminance": 0.40529
}

Semantic roles & 50–950 ramp

primary
#A2B42F
secondary
#8378C7
accent
#46E25B
background
#FCFCF7
surface
#F8F8ED
border
#D1D1C8
text
#131308
muted
#82827B

Preview Lab

Preview with #A2B42F

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

Preview Lab → · Contrast checker → · Palette generator →

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