#A8B438#A8B438

#A8B438 is a light, vivid yellow. Relative luminance 0.413; OKLCH L 73.8% C 0.145 H 114.8°. Best body text is #000000 at 9.25:1 contrast (WCAG AA passes).

Color values

HEX#A8B438
RGBrgb(168, 180, 56)
HSLhsl(66, 53%, 46%)
HSVhsv(66, 69%, 71%)
CMYKcmyk(6.7%, 0%, 68.9%, 29.4%)
CIE-LABlab(70.35, -20.14, 58.78)
CIE-LCHlch(70.35, 62.14, 108.91°)
OKLaboklab(73.75% -0.0608 0.1316)
OKLCHoklch(73.75% 0.145 114.8)
XYZxyz(33.1844, 41.2534, 9.9552)
Luminance0.4125 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A8B438 #4438B4
analogous
#B48238 #A8B438 #6AB438
triadic
#A8B438 #38A8B4 #B438A8
tetradic
#A8B438 #38B482 #4438B4 #B4386A
square
#A8B438 #38B482 #4438B4 #B4386A
split-complementary
#A8B438 #386AB4 #8238B4
monochromatic
#51571B #7C8529 #A8B438 #C2CD5D #D3DB8B

Accessibility & contrast

On white

2.27
#A8B438 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.25
#A8B438 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #A8B438
9.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A8B438#FFFFFF#000000##000000
##A8B4381.002.279.259.25
#FFFFFF2.271.0021.0021.00
#0000009.2521.001.001.00
##0000009.2521.001.001.00

Color blindness preview

Protanopia (red-blind)
#C1AB25
Deuteranopia (green-blind)
#C0AD41
Tritanopia (blue-blind)
#B3AA9B
Achromatopsia (no color)
#ACACAC

Design tokens & code

CSS
--color: #a8b438;
/* rgb */ color: rgb(168, 180, 56);
/* oklch */ color: oklch(73.8% 0.145 114.8);
Tailwind
colors: {
  custom: {
    50: '#c5ca76',
    500: '#a8b438',
    950: '#000000',
  },
}
SCSS
$custom: #a8b438;
$custom-light: #c5ca76;
$custom-dark: #000000;
JSON
{
  "hex": "#a8b438",
  "rgb": {
    "r": 168,
    "g": 180,
    "b": 56
  },
  "hsl": {
    "h": 65.806,
    "s": 52.542,
    "l": 46.275
  },
  "oklch": {
    "l": 0.73751,
    "c": 0.14499,
    "h": 114.8
  },
  "luminance": 0.41253
}

Semantic roles & 50–950 ramp

primary
#A8B438
secondary
#8982C5
accent
#4CDC5A
background
#FCFCF7
surface
#F8F8ED
border
#D1D1C8
text
#131309
muted
#82827B

Preview Lab

Preview with #A8B438

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

Preview Lab → · Contrast checker → · Palette generator →

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