#AFB236#AFB236

#AFB236 is a light, vivid yellow. Relative luminance 0.412; OKLCH L 73.9% C 0.142 H 110.8°. Best body text is #000000 at 9.24:1 contrast (WCAG AA passes).

Color values

HEX#AFB236
RGBrgb(175, 178, 54)
HSLhsl(61, 53%, 45%)
HSVhsv(61, 70%, 70%)
CMYKcmyk(1.7%, 0%, 69.7%, 30.2%)
CIE-LABlab(70.33, -16.26, 59.70)
CIE-LCHlch(70.33, 61.88, 105.23°)
OKLaboklab(73.87% -0.0505 0.133)
OKLCHoklch(73.87% 0.142 110.8)
XYZxyz(34.2666, 41.2220, 9.6409)
Luminance0.4122 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFB236 #3936B2
analogous
#B27736 #AFB236 #71B236
triadic
#AFB236 #36AFB2 #B236AF
tetradic
#AFB236 #36B277 #3936B2 #B23671
square
#AFB236 #36B277 #3936B2 #B23671
split-complementary
#AFB236 #3671B2 #7736B2
monochromatic
#53541A #818328 #AFB236 #CACD59 #D9DB88

Accessibility & contrast

On white

2.27
#AFB236 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.24
#AFB236 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFB236
9.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFB236#FFFFFF#000000##000000
##AFB2361.002.279.249.24
#FFFFFF2.271.0021.0021.00
#0000009.2421.001.001.00
##0000009.2421.001.001.00

Color blindness preview

Protanopia (red-blind)
#C0AA22
Deuteranopia (green-blind)
#C1AE3F
Tritanopia (blue-blind)
#BBA79A
Achromatopsia (no color)
#ACACAC

Design tokens & code

CSS
--color: #afb236;
/* rgb */ color: rgb(175, 178, 54);
/* oklch */ color: oklch(73.9% 0.142 110.8);
Tailwind
colors: {
  custom: {
    50: '#cac875',
    500: '#afb236',
    950: '#000000',
  },
}
SCSS
$custom: #afb236;
$custom-light: #cac875;
$custom-dark: #000000;
JSON
{
  "hex": "#afb236",
  "rgb": {
    "r": 175,
    "g": 178,
    "b": 54
  },
  "hsl": {
    "h": 61.452,
    "s": 53.448,
    "l": 45.49
  },
  "oklch": {
    "l": 0.73865,
    "c": 0.14231,
    "h": 110.8
  },
  "luminance": 0.41221
}

Semantic roles & 50–950 ramp

primary
#AFB236
secondary
#817FC5
accent
#4BDD4E
background
#FCFCF7
surface
#F9F8ED
border
#D2D1C8
text
#141309
muted
#82827B

Preview Lab

Preview with #AFB236

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

Preview Lab → · Contrast checker → · Palette generator →

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