#A5B238#A5B238

#A5B238 is a light, vivid yellow. Relative luminance 0.401; OKLCH L 73.1% C 0.144 H 115.3°. Best body text is #000000 at 9.03:1 contrast (WCAG AA passes).

Color values

HEX#A5B238
RGBrgb(165, 178, 56)
HSLhsl(66, 52%, 46%)
HSVhsv(66, 69%, 70%)
CMYKcmyk(7.3%, 0%, 68.5%, 30.2%)
CIE-LABlab(69.56, -20.40, 57.91)
CIE-LCHlch(69.56, 61.40, 109.41°)
OKLaboklab(73.06% -0.0613 0.1299)
OKLCHoklch(73.06% 0.144 115.3)
XYZxyz(32.1521, 40.1262, 9.7920)
Luminance0.4013 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A5B238 #4538B2
analogous
#B28238 #A5B238 #68B238
triadic
#A5B238 #38A5B2 #B238A5
tetradic
#A5B238 #38B282 #4538B2 #B23868
square
#A5B238 #38B282 #4538B2 #B23868
split-complementary
#A5B238 #3868B2 #8238B2
monochromatic
#4F551B #7A8329 #A5B238 #C0CC5C #D2DA8A

Accessibility & contrast

On white

2.33
#A5B238 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.03
#A5B238 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #A5B238
9.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A5B238#FFFFFF#000000##000000
##A5B2381.002.339.039.03
#FFFFFF2.331.0021.0021.00
#0000009.0321.001.001.00
##0000009.0321.001.001.00

Color blindness preview

Protanopia (red-blind)
#BEA925
Deuteranopia (green-blind)
#BEAB41
Tritanopia (blue-blind)
#AFA89A
Achromatopsia (no color)
#AAAAAA

Design tokens & code

CSS
--color: #a5b238;
/* rgb */ color: rgb(165, 178, 56);
/* oklch */ color: oklch(73.1% 0.144 115.3);
Tailwind
colors: {
  custom: {
    50: '#c3c876',
    500: '#a5b238',
    950: '#000000',
  },
}
SCSS
$custom: #a5b238;
$custom-light: #c3c876;
$custom-dark: #000000;
JSON
{
  "hex": "#a5b238",
  "rgb": {
    "r": 165,
    "g": 178,
    "b": 56
  },
  "hsl": {
    "h": 66.393,
    "s": 52.137,
    "l": 45.882
  },
  "oklch": {
    "l": 0.73057,
    "c": 0.14364,
    "h": 115.3
  },
  "luminance": 0.40126
}

Semantic roles & 50–950 ramp

primary
#A5B238
secondary
#8881C5
accent
#4CDC5B
background
#FCFCF7
surface
#F8F8ED
border
#D1D1C8
text
#131309
muted
#82827B

Preview Lab

Preview with #A5B238

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

Preview Lab → · Contrast checker → · Palette generator →

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