#A2A338#A2A338

#A2A338 is a light, vivid yellow. Relative luminance 0.342; OKLCH L 69.4% C 0.128 H 109.8°. Best body text is #000000 at 7.83:1 contrast (WCAG AA passes).

Color values

HEX#A2A338
RGBrgb(162, 163, 56)
HSLhsl(61, 49%, 43%)
HSVhsv(61, 66%, 64%)
CMYKcmyk(0.6%, 0%, 65.6%, 36.1%)
CIE-LABlab(65.09, -14.04, 53.27)
CIE-LCHlch(65.09, 55.09, 104.77°)
OKLaboklab(69.42% -0.0433 0.1202)
OKLCHoklch(69.42% 0.128 109.8)
XYZxyz(28.7122, 34.1621, 8.8221)
Luminance0.3416 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A2A338 #3938A3
analogous
#A36E38 #A2A338 #6CA338
triadic
#A2A338 #38A2A3 #A338A2
tetradic
#A2A338 #38A36E #3938A3 #A3386C
square
#A2A338 #38A36E #3938A3 #A3386C
split-complementary
#A2A338 #386CA3 #6E38A3
monochromatic
#474819 #757528 #A2A338 #C3C454 #D3D482

Accessibility & contrast

On white

2.68
#A2A338 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.83
#A2A338 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #A2A338
7.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A2A338#FFFFFF#000000##000000
##A2A3381.002.687.837.83
#FFFFFF2.681.0021.0021.00
#0000007.8321.001.001.00
##0000007.8321.001.001.00

Color blindness preview

Protanopia (red-blind)
#B09C29
Deuteranopia (green-blind)
#B1A03F
Tritanopia (blue-blind)
#AD998D
Achromatopsia (no color)
#9E9E9E

Design tokens & code

CSS
--color: #a2a338;
/* rgb */ color: rgb(162, 163, 56);
/* oklch */ color: oklch(69.4% 0.128 109.8);
Tailwind
colors: {
  custom: {
    50: '#c0be74',
    500: '#a2a338',
    950: '#000000',
  },
}
SCSS
$custom: #a2a338;
$custom-light: #c0be74;
$custom-dark: #000000;
JSON
{
  "hex": "#a2a338",
  "rgb": {
    "r": 162,
    "g": 163,
    "b": 56
  },
  "hsl": {
    "h": 60.561,
    "s": 48.858,
    "l": 42.941
  },
  "oklch": {
    "l": 0.69422,
    "c": 0.12777,
    "h": 109.8
  },
  "luminance": 0.34161
}

Semantic roles & 50–950 ramp

primary
#A2A338
secondary
#7A79BD
accent
#4FD851
background
#FCFBF7
surface
#F8F6ED
border
#D1D0C8
text
#131209
muted
#82817B

Preview Lab

Preview with #A2A338

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

Preview Lab → · Contrast checker → · Palette generator →

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