#A5A238#A5A238

#A5A238 is a light, vivid yellow. Relative luminance 0.341; OKLCH L 69.5% C 0.126 H 107.7°. Best body text is #000000 at 7.83:1 contrast (WCAG AA passes).

Color values

HEX#A5A238
RGBrgb(165, 162, 56)
HSLhsl(58, 49%, 43%)
HSVhsv(58, 66%, 65%)
CMYKcmyk(0%, 1.8%, 66.1%, 35.3%)
CIE-LABlab(65.06, -12.21, 53.32)
CIE-LCHlch(65.06, 54.70, 102.90°)
OKLaboklab(69.46% -0.0384 0.1202)
OKLCHoklch(69.46% 0.126 107.7)
XYZxyz(29.1522, 34.1264, 8.7920)
Luminance0.3413 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A5A238 #383BA5
analogous
#A56B38 #A5A238 #71A538
triadic
#A5A238 #38A5A2 #A238A5
tetradic
#A5A238 #38A56B #383BA5 #A53871
square
#A5A238 #38A56B #383BA5 #A53871
split-complementary
#A5A238 #3871A5 #6B38A5
monochromatic
#4A4819 #777528 #A5A238 #C5C255 #D5D383

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##A5A238#FFFFFF#000000##000000
##A5A2381.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)
#AF9C2A
Deuteranopia (green-blind)
#B1A03F
Tritanopia (blue-blind)
#B1988C
Achromatopsia (no color)
#9E9E9E

Design tokens & code

CSS
--color: #a5a238;
/* rgb */ color: rgb(165, 162, 56);
/* oklch */ color: oklch(69.5% 0.126 107.7);
Tailwind
colors: {
  custom: {
    50: '#c3bd74',
    500: '#a5a238',
    950: '#000000',
  },
}
SCSS
$custom: #a5a238;
$custom-light: #c3bd74;
$custom-dark: #000000;
JSON
{
  "hex": "#a5a238",
  "rgb": {
    "r": 165,
    "g": 162,
    "b": 56
  },
  "hsl": {
    "h": 58.349,
    "s": 49.321,
    "l": 43.333
  },
  "oklch": {
    "l": 0.69461,
    "c": 0.12619,
    "h": 107.7
  },
  "luminance": 0.34126
}

Semantic roles & 50–950 ramp

primary
#A5A238
secondary
#7A7CBE
accent
#53D94F
background
#FCFBF7
surface
#F8F6ED
border
#D1D0C8
text
#131209
muted
#82817B

Preview Lab

Preview with #A5A238

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

Preview Lab → · Contrast checker → · Palette generator →

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