#A2B538#A2B538

#A2B538 is a light, vivid yellow. Relative luminance 0.410; OKLCH L 73.5% C 0.148 H 117.7°. Best body text is #000000 at 9.20:1 contrast (WCAG AA passes).

Color values

HEX#A2B538
RGBrgb(162, 181, 56)
HSLhsl(69, 53%, 46%)
HSVhsv(69, 69%, 71%)
CMYKcmyk(10.5%, 0%, 69.1%, 29%)
CIE-LABlab(70.19, -23.16, 58.47)
CIE-LCHlch(70.19, 62.89, 111.61°)
OKLaboklab(73.51% -0.0688 0.1311)
OKLCHoklch(73.51% 0.148 117.7)
XYZxyz(32.1387, 41.0150, 9.9642)
Luminance0.4102 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A2B538 #4B38B5
analogous
#B58A38 #A2B538 #64B538
triadic
#A2B538 #38A2B5 #B538A2
tetradic
#A2B538 #38B58A #4B38B5 #B53864
square
#A2B538 #38B58A #4B38B5 #B53864
split-complementary
#A2B538 #3864B5 #8A38B5
monochromatic
#4E581B #78862A #A2B538 #BCCD5D #CFDB8C

Accessibility & contrast

On white

2.28
#A2B538 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.20
#A2B538 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #A2B538
9.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A2B538#FFFFFF#000000##000000
##A2B5381.002.289.209.20
#FFFFFF2.281.0021.0021.00
#0000009.2021.001.001.00
##0000009.2021.001.001.00

Color blindness preview

Protanopia (red-blind)
#C1AB24
Deuteranopia (green-blind)
#BFAC42
Tritanopia (blue-blind)
#ACAB9C
Achromatopsia (no color)
#ACACAC

Design tokens & code

CSS
--color: #a2b538;
/* rgb */ color: rgb(162, 181, 56);
/* oklch */ color: oklch(73.5% 0.148 117.7);
Tailwind
colors: {
  custom: {
    50: '#c1cb76',
    500: '#a2b538',
    950: '#000000',
  },
}
SCSS
$custom: #a2b538;
$custom-light: #c1cb76;
$custom-dark: #000000;
JSON
{
  "hex": "#a2b538",
  "rgb": {
    "r": 162,
    "g": 181,
    "b": 56
  },
  "hsl": {
    "h": 69.12,
    "s": 52.743,
    "l": 46.471
  },
  "oklch": {
    "l": 0.73505,
    "c": 0.1481,
    "h": 117.7
  },
  "luminance": 0.41015
}

Semantic roles & 50–950 ramp

primary
#A2B538
secondary
#8D83C6
accent
#4CDC62
background
#FCFCF7
surface
#F8F8ED
border
#D1D1C8
text
#131309
muted
#82827B

Preview Lab

Preview with #A2B538

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

Preview Lab → · Contrast checker → · Palette generator →

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