RAL Classic color

RAL 1021 Colza yellow #F3DA0B

RAL 1021 Colza yellow is shown here as #F3DA0B, a widely published sRGB approximation of the printed swatch. It is a pale vivid yellow in the yellow family. In OKLCH it sits at lightness 0.882, chroma 0.183 and hue 100.9°. The nearest CSS named color is gold (#FFD700), ΔE2000 3.6 away.

Relative luminance
0.6922
OKLCH L · C · h
0.882 · 0.183 · 100.9
Best text
Black 14.84:1
Hue family
Yellow

#F3DA0B color codes

HEX
#F3DA0B
RGB
rgb(243, 218, 11)
HSL
hsl(54, 91%, 50%)
OKLCH
oklch(0.882 0.183 100.9)
OKLab
oklab(0.882 -0.034 0.179)
CIELAB (D65)
L* 86.62, a* -8.45, b* 85.48
XYZ (D65)
X 62.10, Y 69.22, Z 10.41
CMYK (naive)
cmyk(0%, 10%, 95%, 5%)

CIELAB and XYZ use the D65 white point; CSS lab() uses D50, so paste the OKLCH or HEX value into stylesheets. CMYK here is a plain formula with no press profile.

RAL and RAL Classic are trademarks of RAL gGmbH, which this site is not affiliated with. The sRGB value is an approximation of the printed swatch; check a physical RAL color card before you specify a paint.

Legibility

Contrast: is #F3DA0B accessible?

Black text on it reaches 14.84:1, passing AAA. White text fails at 1.41:1.

WCAG 2 gives the same ratio whichever color is the text; APCA does not, so its Lc changes sign and size with polarity.

Open the Contrast System
  • Black text on it

    14.84:1

    • AA passes
    • AA large passes
    • AAA passes
    • APCA Lc +83
  • White text on it

    1.41:1

    • AA fails
    • AA large fails
    • AAA fails
    • APCA Lc −22

    Text is here, unreadable at 1.41:1

  • As text on black

    14.84:1

    • AA passes
    • AA large passes
    • AAA passes
    • APCA Lc −83
  • As text on white

    1.41:1

    • AA fails
    • AA large fails
    • AAA fails
    • APCA Lc +19

    Text is here, unreadable at 1.41:1

Nearest versions that pass 4.5:1

  • For text on white

    #867700 4.51:1

    Darkening its OKLCH lightness from 0.88 to 0.57 reaches 4.51:1 on white, keeping the hue.

  • For text on black

    #F3DA0B 14.84:1

    It already reaches 14.84:1 on black, so no change is needed.

Checking another pair? Use the Contrast Checker.

Studio

Adjust #F3DA0B live

Move lightness, chroma and hue in OKLCH, or drag on the map. The map is every lightness and chroma at the current hue: sRGB inside the solid area, Display P3 out to the dashed line.

The studio needs JavaScript.

Scale

Shades and tints of #F3DA0B

Eleven OKLCH lightness steps at this hue, each with its contrast against white and black. #F3DA0B sits at step 200.

  1. 50#FFF7C1
    White
    1.08
    Black
    19.32
  2. 100#FFEE7C
    White
    1.18
    Black
    17.77
  3. 200This color#F3DA0B
    White
    1.41
    Black
    14.84
  4. 300#D6BF00
    White
    1.85
    Black
    11.31
  5. 400#B6A300
    White
    2.55
    Black
    8.22
  6. 500#988700
    White
    3.62
    Black
    5.80
  7. 600#7D7000
    White
    5.01
    Black
    4.18
  8. 700#645900
    White
    7.06
    Black
    2.97
  9. 800#494000
    White
    10.41
    Black
    2.01
  10. 900#2F2900
    White
    14.60
    Black
    1.43
  11. 950#1A1600
    White
    18.12
    Black
    1.15

Under each step, white and black text on it; a bold figure passes 4.5:1.

Gamut

How vivid #F3DA0B can get

At its lightness and hue, sRGB reaches OKLCH chroma 0.184; #F3DA0B uses 99% of it. Display P3, which many recent phones and laptops show, reaches 0.213 there: 16% more.

0.00.20.40.60.80.20.40.60.8 460480500520540560580600620
  • sRGB
  • Display P3
  • Rec. 2020
  • Dominant wavelength
OKLCH chroma
0.183
sRGB edge
0.184
Display P3 edge
0.213
Rec. 2020 edge
0.218
Dominant wavelength
574 nm
Excitation purity
80%
Chromaticity
x 0.4381, y 0.4884
  • This color#F3DA0B
  • Most vivid in sRGB#F3DA00
  • Most vivid in Display P3oklch(0.882 0.213 100.9)

On a screen without Display P3 the last tile shows the sRGB edge instead.

Use the wider color where screens show it
.accent {
  color: #f3da0b;
}
@media (color-gamut: p3) {
  .accent { color: color(display-p3 0.9523 0.8564 0); }
}

Mixing

Mixing #F3DA0B

Each row is the same mix worked out in a different space, with the halfway color at its end. sRGB, which older CSS gradients use, can sag gray or dark in the middle; OKLab keeps the lightness steps even; OKLCH holds chroma and hue as it goes.

White #FFFFFF

  • sRGB50%#F9ED85
  • OKLab50%#F8EEA6
  • OKLCH50%#F8EEA6

Black #000000

  • sRGB50%#7A6D06
  • OKLab50%#5E5401
  • OKLCH50%#5E5401

Its complement #D0D4FF

  • sRGB50%#E2D785
  • OKLab50%#E0DAAB
  • OKLCH50%#FFC7CD
In CSS
/* A gradient and a mix, worked out in OKLCH */
background: linear-gradient(in oklch, #f3da0b, white);
color: color-mix(in oklch, #f3da0b 50%, white);

In use

#F3DA0B in an interface

A button, a link, a heading, a focused field, an icon and a chart line in this color, on a light page and a dark one. Each check is a WCAG 2 contrast minimum: 1.4.3 for text, 1.4.11 for the rest.

Light page

  • Button labelText, 4.5:114.84:1 Passes
  • Link and body-size textText, 4.5:11.41:1 Fails
  • Large headingLarge text, 3:11.41:1 Fails
  • Icons, borders and focus ringsNon-text, 3:11.41:1 Fails

For text on this page, the nearest shade that passes is #867700 4.51:1

Dark page

  • Button labelText, 4.5:114.84:1 Passes
  • Link and body-size textText, 4.5:113.24:1 Passes
  • Large headingLarge text, 3:113.24:1 Passes
  • Icons, borders and focus ringsNon-text, 3:113.24:1 Passes

Color vision

How #F3DA0B looks with color blindness

Tritanopia changes it most, ΔE2000 33.0; deuteranopia changes it least, 1.2.

Simulated with Machado et al. (2009) at full severity, in linear light.

Simulate a whole page What each type sees
  • Protanopia

    No working red (long-wavelength) cones

    #F0D300 ΔE2000 1.8

    Very close

    Reads as pale vivid amber

  • Deuteranopia

    No working green (medium-wavelength) cones

    #F7DD2A ΔE2000 1.2

    Very close

    Reads as pale vivid yellow

  • Tritanopia

    No working blue (short-wavelength) cones

    #FFC9BA ΔE2000 33.0

    Distinct

    Reads as pale muted red

  • Achromatopsia

    No cone color vision; lightness only

    #D9D9D9 ΔE2000 29.3

    Distinct

    Reads as light gray

Pairing check

Checked against its complement, #D0D4FF. Their lightness contrast is only 1.02:1, so where hue collapses, add a label, icon or pattern.

VisionThe pairΔE2000Verdict
Normal vision#F3DA0B · #D0D4FF49.7Stays distinct
Protanopia#F0D300 · #C9D8FF46.9Stays distinct
Deuteranopia#F7DD2A · #C7D5FE47.6Stays distinct
Tritanopia#FFC9BA · #C6DBE229.6Stays distinct
Achromatopsia#D9D9D9 · #D7D7D70.5Easily confused

Harmony

Color harmonies for #F3DA0B

Its complement is #D0D4FF, a pale muted blue, on the cool side of the wheel.

Hue rotations in OKLCH, mapped into sRGB by trimming chroma so hue and lightness stay put.

Open the Harmony Studio
  • Base#F3DA0B
  • Complement#D0D4FF

Complementary

Open in Harmony Studio
  • −30°#FFCE95
  • Base#F3DA0B
  • +30°#ADF065
  • Base#F3DA0B
  • +120°#98E5FF
  • +240°#FFC3E9
  • Base#F3DA0B
  • +150°#BBDCFF
  • +210°#E9CAFF

Split-complementary

Open in Harmony Studio

Code

Design tokens

Ready-to-paste tokens in six formats. Rename them to fit your system.

CSS custom property

:root {
  --color-ral-1021: #f3da0b;
}

Tailwind config

// tailwind.config.js
module.exports = {
  theme: {
    extend: {
      colors: {
        'ral-1021': '#f3da0b',
      },
    },
  },
};

Tailwind v4 theme

/* app.css — Tailwind CSS v4 */
@import "tailwindcss";

@theme {
  --color-ral-1021: oklch(0.882 0.183 100.9);
}

Design token (W3C DTCG)

{
  "color": {
    "ral-1021": {
      "$type": "color",
      "$value": {
        "colorSpace": "srgb",
        "components": [0.9529, 0.8549, 0.0431],
        "hex": "#f3da0b"
      },
      "$description": "RAL 1021 Colza yellow (approximate sRGB)"
    }
  }
}

SwiftUI color

import SwiftUI

enum Palette {
    static let ral1021 = Color(.sRGB, red: 0.953, green: 0.855, blue: 0.043, opacity: 1)
}

Jetpack Compose color

import androidx.compose.ui.graphics.Color

object Palette {
    val Ral1021 = Color(0xFFF3DA0B)
}

Matches

The nearest match in each system

The closest CSS name, Tailwind shade, RAL Classic paint and Crayola crayon by ΔE2000; under 2 is hard to tell apart side by side. RAL and Crayola values approximate physical colors.

Tools

Open #F3DA0B in the tools

Each opens over this page. More colors live in the Color Library, and every color page is listed on the hub.