#AFB238#AFB238

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

Color values

HEX#AFB238
RGBrgb(175, 178, 56)
HSLhsl(61, 52%, 46%)
HSVhsv(61, 69%, 70%)
CMYKcmyk(1.7%, 0%, 68.5%, 30.2%)
CIE-LABlab(70.34, -16.15, 58.96)
CIE-LCHlch(70.34, 61.13, 105.32°)
OKLaboklab(73.88% -0.05 0.1318)
OKLCHoklch(73.88% 0.141 110.8)
XYZxyz(34.3145, 41.2412, 9.8934)
Luminance0.4124 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFB238 #3B38B2
analogous
#B27838 #AFB238 #72B238
triadic
#AFB238 #38AFB2 #B238AF
tetradic
#AFB238 #38B278 #3B38B2 #B23872
square
#AFB238 #38B278 #3B38B2 #B23872
split-complementary
#AFB238 #3872B2 #7838B2
monochromatic
#53551B #818329 #AFB238 #C9CC5C #D8DA8A

Accessibility & contrast

On white

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

On black

9.25
#AFB238 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFB238
9.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFB238#FFFFFF#000000##000000
##AFB2381.002.279.259.25
#FFFFFF2.271.0021.0021.00
#0000009.2521.001.001.00
##0000009.2521.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #afb238;
/* rgb */ color: rgb(175, 178, 56);
/* oklch */ color: oklch(73.9% 0.141 110.8);
Tailwind
colors: {
  custom: {
    50: '#cac876',
    500: '#afb238',
    950: '#000000',
  },
}
SCSS
$custom: #afb238;
$custom-light: #cac876;
$custom-dark: #000000;
JSON
{
  "hex": "#afb238",
  "rgb": {
    "r": 175,
    "g": 178,
    "b": 56
  },
  "hsl": {
    "h": 61.475,
    "s": 52.137,
    "l": 45.882
  },
  "oklch": {
    "l": 0.7388,
    "c": 0.14097,
    "h": 110.8
  },
  "luminance": 0.4124
}

Semantic roles & 50–950 ramp

primary
#AFB238
secondary
#8381C5
accent
#4CDC50
background
#FCFCF7
surface
#F9F8ED
border
#D2D1C8
text
#141309
muted
#82827B

Preview Lab

Preview with #AFB238

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

Preview Lab → · Contrast checker → · Palette generator →

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