#A2B340#A2B340

#A2B340 is a light, vivid yellow. Relative luminance 0.403; OKLCH L 73.1% C 0.140 H 117.2°. Best body text is #000000 at 9.06:1 contrast (WCAG AA passes).

Color values

HEX#A2B340
RGBrgb(162, 179, 64)
HSLhsl(69, 47%, 48%)
HSVhsv(69, 64%, 70%)
CMYKcmyk(9.5%, 0%, 64.2%, 29.8%)
CIE-LABlab(69.68, -21.66, 54.73)
CIE-LCHlch(69.68, 58.86, 111.59°)
OKLaboklab(73.11% -0.0639 0.1245)
OKLCHoklch(73.11% 0.14 117.2)
XYZxyz(31.9464, 40.2921, 10.9437)
Luminance0.4029 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A2B340 #5140B3
analogous
#B38B40 #A2B340 #68B340
triadic
#A2B340 #40A2B3 #B340A2
tetradic
#A2B340 #40B38B #5140B3 #B34068
square
#A2B340 #40B38B #5140B3 #B34068
split-complementary
#A2B340 #4068B3 #8B40B3
monochromatic
#505920 #798630 #A2B340 #BAC967 #CFD994

Accessibility & contrast

On white

2.32
#A2B340 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.06
#A2B340 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #A2B340
9.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A2B340#FFFFFF#000000##000000
##A2B3401.002.329.069.06
#FFFFFF2.321.0021.0021.00
#0000009.0621.001.001.00
##0000009.0621.001.001.00

Color blindness preview

Protanopia (red-blind)
#BFAA31
Deuteranopia (green-blind)
#BDAB48
Tritanopia (blue-blind)
#ABA99B
Achromatopsia (no color)
#AAAAAA

Design tokens & code

CSS
--color: #a2b340;
/* rgb */ color: rgb(162, 179, 64);
/* oklch */ color: oklch(73.1% 0.140 117.2);
Tailwind
colors: {
  custom: {
    50: '#c0c97a',
    500: '#a2b340',
    950: '#000000',
  },
}
SCSS
$custom: #a2b340;
$custom-light: #c0c97a;
$custom-dark: #000000;
JSON
{
  "hex": "#a2b340",
  "rgb": {
    "r": 162,
    "g": 179,
    "b": 64
  },
  "hsl": {
    "h": 68.87,
    "s": 47.325,
    "l": 47.647
  },
  "oklch": {
    "l": 0.73115,
    "c": 0.1399,
    "h": 117.2
  },
  "luminance": 0.40292
}

Semantic roles & 50–950 ramp

primary
#A2B340
secondary
#938AC4
accent
#51D765
background
#FCFCF7
surface
#F8F8EE
border
#D1D1C9
text
#13130A
muted
#82827C

Preview Lab

Preview with #A2B340

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

Preview Lab → · Contrast checker → · Palette generator →

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