#A2B338#A2B338

#A2B338 is a light, vivid yellow. Relative luminance 0.402; OKLCH L 73.0% C 0.146 H 117.0°. Best body text is #000000 at 9.04:1 contrast (WCAG AA passes).

Color values

HEX#A2B338
RGBrgb(162, 179, 56)
HSLhsl(68, 52%, 46%)
HSVhsv(68, 69%, 70%)
CMYKcmyk(9.5%, 0%, 68.7%, 29.8%)
CIE-LABlab(69.62, -22.17, 57.90)
CIE-LCHlch(69.62, 61.99, 110.95°)
OKLaboklab(73.05% -0.0661 0.1299)
OKLCHoklch(73.05% 0.146 117)
XYZxyz(31.7349, 40.2075, 9.8296)
Luminance0.4021 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A2B338 #4938B3
analogous
#B38638 #A2B338 #64B338
triadic
#A2B338 #38A2B3 #B338A2
tetradic
#A2B338 #38B386 #4938B3 #B33864
square
#A2B338 #38B386 #4938B3 #B33864
split-complementary
#A2B338 #3864B3 #8638B3
monochromatic
#4E561B #788429 #A2B338 #BDCC5C #D0DB8B

Accessibility & contrast

On white

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

On black

9.04
#A2B338 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #A2B338
9.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A2B338#FFFFFF#000000##000000
##A2B3381.002.329.049.04
#FFFFFF2.321.0021.0021.00
#0000009.0421.001.001.00
##0000009.0421.001.001.00

Color blindness preview

Protanopia (red-blind)
#BFAA25
Deuteranopia (green-blind)
#BDAB41
Tritanopia (blue-blind)
#ACA99A
Achromatopsia (no color)
#AAAAAA

Design tokens & code

CSS
--color: #a2b338;
/* rgb */ color: rgb(162, 179, 56);
/* oklch */ color: oklch(73.0% 0.146 117.0);
Tailwind
colors: {
  custom: {
    50: '#c1c976',
    500: '#a2b338',
    950: '#000000',
  },
}
SCSS
$custom: #a2b338;
$custom-light: #c1c976;
$custom-dark: #000000;
JSON
{
  "hex": "#a2b338",
  "rgb": {
    "r": 162,
    "g": 179,
    "b": 56
  },
  "hsl": {
    "h": 68.293,
    "s": 52.34,
    "l": 46.078
  },
  "oklch": {
    "l": 0.73047,
    "c": 0.14576,
    "h": 117
  },
  "luminance": 0.40207
}

Semantic roles & 50–950 ramp

primary
#A2B338
secondary
#8B82C5
accent
#4CDC60
background
#FCFCF7
surface
#F8F8ED
border
#D1D1C8
text
#131309
muted
#82827B

Preview Lab

Preview with #A2B338

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

Preview Lab → · Contrast checker → · Palette generator →

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