#A8A138#A8A138

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

Color values

HEX#A8A138
RGBrgb(168, 161, 56)
HSLhsl(56, 50%, 44%)
HSVhsv(56, 67%, 66%)
CMYKcmyk(0%, 4.2%, 66.7%, 34.1%)
CIE-LABlab(65.04, -10.38, 53.38)
CIE-LCHlch(65.04, 54.38, 101.00°)
OKLaboklab(69.51% -0.0334 0.1203)
OKLCHoklch(69.51% 0.125 105.5)
XYZxyz(29.6082, 34.1011, 8.7632)
Luminance0.3410 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A8A138 #383FA8
analogous
#A86938 #A8A138 #77A838
triadic
#A8A138 #38A8A1 #A138A8
tetradic
#A8A138 #38A869 #383FA8 #A83877
square
#A8A138 #38A869 #383FA8 #A83877
split-complementary
#A8A138 #3877A8 #6938A8
monochromatic
#4C4919 #7A7529 #A8A138 #C7C056 #D6D184

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##A8A138#FFFFFF#000000##000000
##A8A1381.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)
#AF9B2A
Deuteranopia (green-blind)
#B1A03F
Tritanopia (blue-blind)
#B4968C
Achromatopsia (no color)
#9E9E9E

Design tokens & code

CSS
--color: #a8a138;
/* rgb */ color: rgb(168, 161, 56);
/* oklch */ color: oklch(69.5% 0.125 105.5);
Tailwind
colors: {
  custom: {
    50: '#c5bc74',
    500: '#a8a138',
    950: '#000000',
  },
}
SCSS
$custom: #a8a138;
$custom-light: #c5bc74;
$custom-dark: #000000;
JSON
{
  "hex": "#a8a138",
  "rgb": {
    "r": 168,
    "g": 161,
    "b": 56
  },
  "hsl": {
    "h": 56.25,
    "s": 50,
    "l": 43.922
  },
  "oklch": {
    "l": 0.69508,
    "c": 0.12479,
    "h": 105.5
  },
  "luminance": 0.341
}

Semantic roles & 50–950 ramp

primary
#A8A138
secondary
#7C80C0
accent
#57DA4E
background
#FCFBF7
surface
#F8F6ED
border
#D1D0C8
text
#131209
muted
#82817B

Preview Lab

Preview with #A8A138

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

Preview Lab → · Contrast checker → · Palette generator →

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