#A5A338#A5A338

#A5A338 is a light, vivid yellow. Relative luminance 0.345; OKLCH L 69.7% C 0.127 H 108.2°. Best body text is #000000 at 7.90:1 contrast (WCAG AA passes).

Color values

HEX#A5A338
RGBrgb(165, 163, 56)
HSLhsl(59, 49%, 43%)
HSVhsv(59, 66%, 65%)
CMYKcmyk(0%, 1.2%, 66.1%, 35.3%)
CIE-LABlab(65.34, -12.74, 53.61)
CIE-LCHlch(65.34, 55.10, 103.36°)
OKLaboklab(69.68% -0.0398 0.1208)
OKLCHoklch(69.68% 0.127 108.2)
XYZxyz(29.3291, 34.4801, 8.8510)
Luminance0.3448 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A5A338 #383AA5
analogous
#A56C38 #A5A338 #70A538
triadic
#A5A338 #38A5A3 #A338A5
tetradic
#A5A338 #38A56C #383AA5 #A53870
square
#A5A338 #38A56C #383AA5 #A53870
split-complementary
#A5A338 #3870A5 #6C38A5
monochromatic
#4A4919 #777628 #A5A338 #C5C355 #D5D383

Accessibility & contrast

On white

2.66
#A5A338 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.90
#A5A338 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #A5A338
7.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A5A338#FFFFFF#000000##000000
##A5A3381.002.667.907.90
#FFFFFF2.661.0021.0021.00
#0000007.9021.001.001.00
##0000007.9021.001.001.00

Color blindness preview

Protanopia (red-blind)
#B09D29
Deuteranopia (green-blind)
#B2A03F
Tritanopia (blue-blind)
#B1998D
Achromatopsia (no color)
#9F9F9F

Design tokens & code

CSS
--color: #a5a338;
/* rgb */ color: rgb(165, 163, 56);
/* oklch */ color: oklch(69.7% 0.127 108.2);
Tailwind
colors: {
  custom: {
    50: '#c3be74',
    500: '#a5a338',
    950: '#000000',
  },
}
SCSS
$custom: #a5a338;
$custom-light: #c3be74;
$custom-dark: #000000;
JSON
{
  "hex": "#a5a338",
  "rgb": {
    "r": 165,
    "g": 163,
    "b": 56
  },
  "hsl": {
    "h": 58.899,
    "s": 49.321,
    "l": 43.333
  },
  "oklch": {
    "l": 0.69684,
    "c": 0.12722,
    "h": 108.2
  },
  "luminance": 0.34479
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #A5A338

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

Preview Lab → · Contrast checker → · Palette generator →

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