#A8A338#A8A338

#A8A338 is a light, vivid yellow. Relative luminance 0.348; OKLCH L 69.9% C 0.127 H 106.7°. Best body text is #000000 at 7.96:1 contrast (WCAG AA passes).

Color values

HEX#A8A338
RGBrgb(168, 163, 56)
HSLhsl(57, 50%, 44%)
HSVhsv(57, 67%, 66%)
CMYKcmyk(0%, 3%, 66.7%, 34.1%)
CIE-LABlab(65.60, -11.43, 53.95)
CIE-LCHlch(65.60, 55.15, 101.96°)
OKLaboklab(69.95% -0.0363 0.1215)
OKLCHoklch(69.95% 0.127 106.7)
XYZxyz(29.9605, 34.8057, 8.8806)
Luminance0.3481 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A8A338 #383DA8
analogous
#A86B38 #A8A338 #75A838
triadic
#A8A338 #38A8A3 #A338A8
tetradic
#A8A338 #38A86B #383DA8 #A83875
square
#A8A338 #38A86B #383DA8 #A83875
split-complementary
#A8A338 #3875A8 #6B38A8
monochromatic
#4C4A19 #7A7629 #A8A338 #C7C256 #D6D284

Accessibility & contrast

On white

2.64
#A8A338 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.96
#A8A338 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #A8A338
7.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A8A338#FFFFFF#000000##000000
##A8A3381.002.647.967.96
#FFFFFF2.641.0021.0021.00
#0000007.9621.001.001.00
##0000007.9621.001.001.00

Color blindness preview

Protanopia (red-blind)
#B19D29
Deuteranopia (green-blind)
#B3A13F
Tritanopia (blue-blind)
#B4988D
Achromatopsia (no color)
#9F9F9F

Design tokens & code

CSS
--color: #a8a338;
/* rgb */ color: rgb(168, 163, 56);
/* oklch */ color: oklch(69.9% 0.127 106.7);
Tailwind
colors: {
  custom: {
    50: '#c5be75',
    500: '#a8a338',
    950: '#000000',
  },
}
SCSS
$custom: #a8a338;
$custom-light: #c5be75;
$custom-dark: #000000;
JSON
{
  "hex": "#a8a338",
  "rgb": {
    "r": 168,
    "g": 163,
    "b": 56
  },
  "hsl": {
    "h": 57.321,
    "s": 50,
    "l": 43.922
  },
  "oklch": {
    "l": 0.69949,
    "c": 0.12677,
    "h": 106.7
  },
  "luminance": 0.34805
}

Semantic roles & 50–950 ramp

primary
#A8A338
secondary
#7C7FC0
accent
#55DA4E
background
#FCFBF7
surface
#F8F6ED
border
#D1D0C8
text
#131209
muted
#82817B

Preview Lab

Preview with #A8A338

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

Preview Lab → · Contrast checker → · Palette generator →

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