#A8B340#A8B340

#A8B340 is a light, vivid yellow. Relative luminance 0.409; OKLCH L 73.6% C 0.138 H 114.5°. Best body text is #000000 at 9.19:1 contrast (WCAG AA passes).

Color values

HEX#A8B340
RGBrgb(168, 179, 64)
HSLhsl(66, 47%, 48%)
HSVhsv(66, 64%, 70%)
CMYKcmyk(6.1%, 0%, 64.2%, 29.8%)
CIE-LABlab(70.13, -19.14, 55.35)
CIE-LCHlch(70.13, 58.56, 109.08°)
OKLaboklab(73.59% -0.0572 0.1256)
OKLCHoklch(73.59% 0.138 114.5)
XYZxyz(33.1948, 40.9358, 11.0022)
Luminance0.4093 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A8B340 #4B40B3
analogous
#B38440 #A8B340 #6FB340
triadic
#A8B340 #40A8B3 #B340A8
tetradic
#A8B340 #40B384 #4B40B3 #B3406F
square
#A8B340 #40B384 #4B40B3 #B3406F
split-complementary
#A8B340 #406FB3 #8440B3
monochromatic
#535920 #7E8630 #A8B340 #BFC967 #D2D994

Accessibility & contrast

On white

2.29
#A8B340 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.19
#A8B340 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #A8B340
9.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A8B340#FFFFFF#000000##000000
##A8B3401.002.299.199.19
#FFFFFF2.291.0021.0021.00
#0000009.1921.001.001.00
##0000009.1921.001.001.00

Color blindness preview

Protanopia (red-blind)
#BFAA31
Deuteranopia (green-blind)
#BFAD48
Tritanopia (blue-blind)
#B2A99B
Achromatopsia (no color)
#ABABAB

Design tokens & code

CSS
--color: #a8b340;
/* rgb */ color: rgb(168, 179, 64);
/* oklch */ color: oklch(73.6% 0.138 114.5);
Tailwind
colors: {
  custom: {
    50: '#c5c97b',
    500: '#a8b340',
    950: '#000000',
  },
}
SCSS
$custom: #a8b340;
$custom-light: #c5c97b;
$custom-dark: #000000;
JSON
{
  "hex": "#a8b340",
  "rgb": {
    "r": 168,
    "g": 179,
    "b": 64
  },
  "hsl": {
    "h": 65.739,
    "s": 47.325,
    "l": 47.647
  },
  "oklch": {
    "l": 0.73591,
    "c": 0.13804,
    "h": 114.5
  },
  "luminance": 0.40935
}

Semantic roles & 50–950 ramp

primary
#A8B340
secondary
#908AC4
accent
#51D75E
background
#FCFCF7
surface
#F8F8EE
border
#D1D1C9
text
#13130A
muted
#82827C

Preview Lab

Preview with #A8B340

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

Preview Lab → · Contrast checker → · Palette generator →

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