#A5A234#A5A234

#A5A234 is a light, vivid yellow. Relative luminance 0.341; OKLCH L 69.4% C 0.129 H 107.8°. Best body text is #000000 at 7.82:1 contrast (WCAG AA passes).

Color values

HEX#A5A234
RGBrgb(165, 162, 52)
HSLhsl(58, 52%, 43%)
HSVhsv(58, 68%, 65%)
CMYKcmyk(0%, 1.8%, 68.5%, 35.3%)
CIE-LABlab(65.03, -12.45, 54.92)
CIE-LCHlch(65.03, 56.31, 102.77°)
OKLaboklab(69.43% -0.0395 0.1229)
OKLCHoklch(69.43% 0.129 107.8)
XYZxyz(29.0583, 34.0889, 8.2973)
Luminance0.3409 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A5A234 #3437A5
analogous
#A56934 #A5A234 #70A534
triadic
#A5A234 #34A5A2 #A234A5
tetradic
#A5A234 #34A569 #3437A5 #A53470
square
#A5A234 #34A569 #3437A5 #A53470
split-complementary
#A5A234 #3470A5 #6934A5
monochromatic
#484717 #767425 #A5A234 #C7C44F #D6D47D

Accessibility & contrast

On white

2.69
#A5A234 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.82
#A5A234 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #A5A234
7.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A5A234#FFFFFF#000000##000000
##A5A2341.002.697.827.82
#FFFFFF2.691.0021.0021.00
#0000007.8221.001.001.00
##0000007.8221.001.001.00

Color blindness preview

Protanopia (red-blind)
#AF9C24
Deuteranopia (green-blind)
#B1A03B
Tritanopia (blue-blind)
#B1988C
Achromatopsia (no color)
#9E9E9E

Design tokens & code

CSS
--color: #a5a234;
/* rgb */ color: rgb(165, 162, 52);
/* oklch */ color: oklch(69.4% 0.129 107.8);
Tailwind
colors: {
  custom: {
    50: '#c3bd72',
    500: '#a5a234',
    950: '#000000',
  },
}
SCSS
$custom: #a5a234;
$custom-light: #c3bd72;
$custom-dark: #000000;
JSON
{
  "hex": "#a5a234",
  "rgb": {
    "r": 165,
    "g": 162,
    "b": 52
  },
  "hsl": {
    "h": 58.407,
    "s": 52.074,
    "l": 42.549
  },
  "oklch": {
    "l": 0.69428,
    "c": 0.1291,
    "h": 107.8
  },
  "luminance": 0.34088
}

Semantic roles & 50–950 ramp

primary
#A5A234
secondary
#7678BF
accent
#50DC4C
background
#FCFBF7
surface
#F8F6ED
border
#D1D0C8
text
#131208
muted
#82817B

Preview Lab

Preview with #A5A234

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

Preview Lab → · Contrast checker → · Palette generator →

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