#A5B338#A5B338

#A5B338 is a light, vivid yellow. Relative luminance 0.405; OKLCH L 73.3% C 0.145 H 115.7°. Best body text is #000000 at 9.10:1 contrast (WCAG AA passes).

Color values

HEX#A5B338
RGBrgb(165, 179, 56)
HSLhsl(67, 52%, 46%)
HSVhsv(67, 69%, 70%)
CMYKcmyk(7.8%, 0%, 68.7%, 29.8%)
CIE-LABlab(69.84, -20.90, 58.20)
CIE-LCHlch(69.84, 61.84, 109.76°)
OKLaboklab(73.28% -0.0627 0.1305)
OKLCHoklch(73.28% 0.145 115.7)
XYZxyz(32.3518, 40.5255, 9.8586)
Luminance0.4052 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A5B338 #4638B3
analogous
#B38338 #A5B338 #67B338
triadic
#A5B338 #38A5B3 #B338A5
tetradic
#A5B338 #38B383 #4638B3 #B33867
square
#A5B338 #38B383 #4638B3 #B33867
split-complementary
#A5B338 #3867B3 #8338B3
monochromatic
#4F561B #7A8429 #A5B338 #BFCC5C #D2DB8B

Accessibility & contrast

On white

2.31
#A5B338 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.10
#A5B338 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #A5B338
9.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A5B338#FFFFFF#000000##000000
##A5B3381.002.319.109.10
#FFFFFF2.311.0021.0021.00
#0000009.1021.001.001.00
##0000009.1021.001.001.00

Color blindness preview

Protanopia (red-blind)
#BFAA25
Deuteranopia (green-blind)
#BEAC41
Tritanopia (blue-blind)
#AFA99B
Achromatopsia (no color)
#ABABAB

Design tokens & code

CSS
--color: #a5b338;
/* rgb */ color: rgb(165, 179, 56);
/* oklch */ color: oklch(73.3% 0.145 115.7);
Tailwind
colors: {
  custom: {
    50: '#c3c976',
    500: '#a5b338',
    950: '#000000',
  },
}
SCSS
$custom: #a5b338;
$custom-light: #c3c976;
$custom-dark: #000000;
JSON
{
  "hex": "#a5b338",
  "rgb": {
    "r": 165,
    "g": 179,
    "b": 56
  },
  "hsl": {
    "h": 66.829,
    "s": 52.34,
    "l": 46.078
  },
  "oklch": {
    "l": 0.73284,
    "c": 0.14478,
    "h": 115.7
  },
  "luminance": 0.40525
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #A5B338

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

Preview Lab → · Contrast checker → · Palette generator →

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