#A8A238#A8A238

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

Color values

HEX#A8A238
RGBrgb(168, 162, 56)
HSLhsl(57, 50%, 44%)
HSVhsv(57, 67%, 66%)
CMYKcmyk(0%, 3.6%, 66.7%, 34.1%)
CIE-LABlab(65.32, -10.90, 53.66)
CIE-LCHlch(65.32, 54.76, 101.49°)
OKLaboklab(69.73% -0.0348 0.1209)
OKLCHoklch(69.73% 0.126 106.1)
XYZxyz(29.7837, 34.4520, 8.8216)
Luminance0.3445 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A8A238 #383EA8
analogous
#A86A38 #A8A238 #76A838
triadic
#A8A238 #38A8A2 #A238A8
tetradic
#A8A238 #38A86A #383EA8 #A83876
square
#A8A238 #38A86A #383EA8 #A83876
split-complementary
#A8A238 #3876A8 #6A38A8
monochromatic
#4C4919 #7A7629 #A8A238 #C7C156 #D6D284

Accessibility & contrast

On white

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

On black

7.89
#A8A238 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #A8A238
7.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A8A238#FFFFFF#000000##000000
##A8A2381.002.667.897.89
#FFFFFF2.661.0021.0021.00
#0000007.8921.001.001.00
##0000007.8921.001.001.00

Color blindness preview

Protanopia (red-blind)
#B09C2A
Deuteranopia (green-blind)
#B2A13F
Tritanopia (blue-blind)
#B4978C
Achromatopsia (no color)
#9F9F9F

Design tokens & code

CSS
--color: #a8a238;
/* rgb */ color: rgb(168, 162, 56);
/* oklch */ color: oklch(69.7% 0.126 106.1);
Tailwind
colors: {
  custom: {
    50: '#c5bd74',
    500: '#a8a238',
    950: '#000000',
  },
}
SCSS
$custom: #a8a238;
$custom-light: #c5bd74;
$custom-dark: #000000;
JSON
{
  "hex": "#a8a238",
  "rgb": {
    "r": 168,
    "g": 162,
    "b": 56
  },
  "hsl": {
    "h": 56.786,
    "s": 50,
    "l": 43.922
  },
  "oklch": {
    "l": 0.69728,
    "c": 0.12577,
    "h": 106.1
  },
  "luminance": 0.34451
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #A8A238

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

Preview Lab → · Contrast checker → · Palette generator →

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