#B2B238#B2B238

#B2B238 is a light, vivid yellow. Relative luminance 0.416; OKLCH L 74.1% C 0.140 H 109.4°. Best body text is #000000 at 9.32:1 contrast (WCAG AA passes).

Color values

HEX#B2B238
RGBrgb(178, 178, 56)
HSLhsl(60, 52%, 46%)
HSVhsv(60, 69%, 70%)
CMYKcmyk(0%, 0%, 68.5%, 30.2%)
CIE-LABlab(70.59, -14.86, 59.28)
CIE-LCHlch(70.59, 61.12, 104.07°)
OKLaboklab(74.13% -0.0466 0.1324)
OKLCHoklch(74.13% 0.14 109.4)
XYZxyz(34.9955, 41.5923, 9.9253)
Luminance0.4159 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B2B238 #3838B2
analogous
#B27538 #B2B238 #75B238
triadic
#B2B238 #38B2B2 #B238B2
tetradic
#B2B238 #38B275 #3838B2 #B23875
square
#B2B238 #38B275 #3838B2 #B23875
split-complementary
#B2B238 #3875B2 #7538B2
monochromatic
#55551B #838329 #B2B238 #CCCC5C #DADA8A

Accessibility & contrast

On white

2.25
#B2B238 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.32
#B2B238 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #B2B238
9.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B2B238#FFFFFF#000000##000000
##B2B2381.002.259.329.32
#FFFFFF2.251.0021.0021.00
#0000009.3221.001.001.00
##0000009.3221.001.001.00

Color blindness preview

Protanopia (red-blind)
#C0AB25
Deuteranopia (green-blind)
#C2AE41
Tritanopia (blue-blind)
#BEA79A
Achromatopsia (no color)
#ADADAD

Design tokens & code

CSS
--color: #b2b238;
/* rgb */ color: rgb(178, 178, 56);
/* oklch */ color: oklch(74.1% 0.140 109.4);
Tailwind
colors: {
  custom: {
    50: '#ccc876',
    500: '#b2b238',
    950: '#000000',
  },
}
SCSS
$custom: #b2b238;
$custom-light: #ccc876;
$custom-dark: #000000;
JSON
{
  "hex": "#b2b238",
  "rgb": {
    "r": 178,
    "g": 178,
    "b": 56
  },
  "hsl": {
    "h": 60,
    "s": 52.137,
    "l": 45.882
  },
  "oklch": {
    "l": 0.74135,
    "c": 0.14035,
    "h": 109.4
  },
  "luminance": 0.41591
}

Semantic roles & 50–950 ramp

primary
#B2B238
secondary
#8181C5
accent
#4CDC4C
background
#FCFCF7
surface
#F9F8ED
border
#D2D1C8
text
#141309
muted
#82827B

Preview Lab

Preview with #B2B238

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

Preview Lab → · Contrast checker → · Palette generator →

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