#A8B731#A8B731

#A8B731 is a light, vivid yellow. Relative luminance 0.424; OKLCH L 74.4% C 0.153 H 115.8°. Best body text is #000000 at 9.48:1 contrast (WCAG AA passes).

Color values

HEX#A8B731
RGBrgb(168, 183, 49)
HSLhsl(67, 58%, 45%)
HSVhsv(67, 73%, 72%)
CMYKcmyk(8.2%, 0%, 73.2%, 28.2%)
CIE-LABlab(71.16, -22.00, 62.13)
CIE-LCHlch(71.16, 65.91, 109.50°)
OKLaboklab(74.38% -0.0666 0.1375)
OKLCHoklch(74.38% 0.153 115.8)
XYZxyz(33.6372, 42.4141, 9.3199)
Luminance0.4241 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A8B731 #4031B7
analogous
#B78331 #A8B731 #65B731
triadic
#A8B731 #31A8B7 #B731A8
tetradic
#A8B731 #31B783 #4031B7 #B73165
square
#A8B731 #31B783 #4031B7 #B73165
split-complementary
#A8B731 #3165B7 #8331B7
monochromatic
#4F5617 #7C8724 #A8B731 #C3D154 #D4DE84

Accessibility & contrast

On white

2.21
#A8B731 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.48
#A8B731 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #A8B731
9.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A8B731#FFFFFF#000000##000000
##A8B7311.002.219.489.48
#FFFFFF2.211.0021.0021.00
#0000009.4821.001.001.00
##0000009.4821.001.001.00

Color blindness preview

Protanopia (red-blind)
#C4AD16
Deuteranopia (green-blind)
#C3AF3C
Tritanopia (blue-blind)
#B3AC9D
Achromatopsia (no color)
#AEAEAE

Design tokens & code

CSS
--color: #a8b731;
/* rgb */ color: rgb(168, 183, 49);
/* oklch */ color: oklch(74.4% 0.153 115.8);
Tailwind
colors: {
  custom: {
    50: '#c5cc73',
    500: '#a8b731',
    950: '#000000',
  },
}
SCSS
$custom: #a8b731;
$custom-light: #c5cc73;
$custom-dark: #000000;
JSON
{
  "hex": "#a8b731",
  "rgb": {
    "r": 168,
    "g": 183,
    "b": 49
  },
  "hsl": {
    "h": 66.716,
    "s": 57.759,
    "l": 45.49
  },
  "oklch": {
    "l": 0.7438,
    "c": 0.15278,
    "h": 115.8
  },
  "luminance": 0.42414
}

Semantic roles & 50–950 ramp

primary
#A8B731
secondary
#857CC8
accent
#47E158
background
#FCFCF7
surface
#F8F8ED
border
#D1D1C8
text
#131309
muted
#82827B

Preview Lab

Preview with #A8B731

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

Preview Lab → · Contrast checker → · Palette generator →

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