#9FB238#9FB238

#9FB238 is a light, vivid yellow. Relative luminance 0.395; OKLCH L 72.6% C 0.146 H 117.8°. Best body text is #000000 at 8.90:1 contrast (WCAG AA passes).

Color values

HEX#9FB238
RGBrgb(159, 178, 56)
HSLhsl(69, 52%, 46%)
HSVhsv(69, 69%, 70%)
CMYKcmyk(10.7%, 0%, 68.5%, 30.2%)
CIE-LABlab(69.11, -22.93, 57.31)
CIE-LCHlch(69.11, 61.73, 111.81°)
OKLaboklab(72.58% -0.068 0.1288)
OKLCHoklch(72.58% 0.146 117.8)
XYZxyz(30.9329, 39.4975, 9.7349)
Luminance0.3950 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9FB238 #4B38B2
analogous
#B28838 #9FB238 #62B238
triadic
#9FB238 #389FB2 #B2389F
tetradic
#9FB238 #38B288 #4B38B2 #B23862
square
#9FB238 #38B288 #4B38B2 #B23862
split-complementary
#9FB238 #3862B2 #8838B2
monochromatic
#4C551B #758329 #9FB238 #BACC5C #CEDA8A

Accessibility & contrast

On white

2.36
#9FB238 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.90
#9FB238 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #9FB238
8.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9FB238#FFFFFF#000000##000000
##9FB2381.002.368.908.90
#FFFFFF2.361.0021.0021.00
#0000008.9021.001.001.00
##0000008.9021.001.001.00

Color blindness preview

Protanopia (red-blind)
#BEA825
Deuteranopia (green-blind)
#BCA941
Tritanopia (blue-blind)
#A8A89A
Achromatopsia (no color)
#A9A9A9

Design tokens & code

CSS
--color: #9fb238;
/* rgb */ color: rgb(159, 178, 56);
/* oklch */ color: oklch(72.6% 0.146 117.8);
Tailwind
colors: {
  custom: {
    50: '#bec976',
    500: '#9fb238',
    950: '#000000',
  },
}
SCSS
$custom: #9fb238;
$custom-light: #bec976;
$custom-dark: #000000;
JSON
{
  "hex": "#9fb238",
  "rgb": {
    "r": 159,
    "g": 178,
    "b": 56
  },
  "hsl": {
    "h": 69.344,
    "s": 52.137,
    "l": 45.882
  },
  "oklch": {
    "l": 0.72584,
    "c": 0.14564,
    "h": 117.8
  },
  "luminance": 0.39497
}

Semantic roles & 50–950 ramp

primary
#9FB238
secondary
#8C81C5
accent
#4CDC63
background
#FCFCF7
surface
#F8F8ED
border
#D1D1C8
text
#121309
muted
#81827B

Preview Lab

Preview with #9FB238

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

Preview Lab → · Contrast checker → · Palette generator →

#9FB238 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva